acl: Export qcopy_acl.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2012 00:54:25 +0000 (01:54 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 12 Jan 2012 00:36:36 +0000 (01:36 +0100)
* lib/acl.h (qcopy_acl): New declaration.
* lib/copy-acl.c (qcopy_acl): Make non-static.

ChangeLog
lib/acl.h
lib/copy-acl.c

index 3b589df..6e97da1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-01-10  Bruno Haible  <bruno@clisp.org>
 
+       acl: Export qcopy_acl.
+       * lib/acl.h (qcopy_acl): New declaration.
+       * lib/copy-acl.c (qcopy_acl): Make non-static.
+
        acl: Rename a local variable.
        * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
 
index 762d3c1..dc36b0d 100644 (file)
--- a/lib/acl.h
+++ b/lib/acl.h
@@ -21,7 +21,8 @@
 #include <sys/stat.h>
 
 int file_has_acl (char const *, struct stat const *);
-int copy_acl (char const *, int, char const *, int, mode_t);
-int set_acl (char const *, int, mode_t);
 int qset_acl (char const *, int, mode_t);
+int set_acl (char const *, int, mode_t);
+int qcopy_acl (char const *, int, char const *, int, mode_t);
+int copy_acl (char const *, int, char const *, int, mode_t);
 int chmod_or_fchmod (char const *, int, mode_t);
index a318396..9b9f033 100644 (file)
@@ -38,7 +38,7 @@
    Return -2 and set errno for an error relating to the source file.
    Return -1 and set errno for an error relating to the destination file.  */
 
-static int
+int
 qcopy_acl (const char *src_name, int source_desc, const char *dst_name,
            int dest_desc, mode_t mode)
 {