changeset 16270:a81fb44bbdeb

acl: Export qcopy_acl. * lib/acl.h (qcopy_acl): New declaration. * lib/copy-acl.c (qcopy_acl): Make non-static.
author Bruno Haible <bruno@clisp.org>
date Wed, 11 Jan 2012 01:54:25 +0100
parents ee1df2d14b96
children a9b070c205b2
files ChangeLog lib/acl.h lib/copy-acl.c
diffstat 3 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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.
 
--- 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 qset_acl (char const *, int, mode_t);
 int set_acl (char const *, int, mode_t);
-int qset_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);
--- a/lib/copy-acl.c
+++ b/lib/copy-acl.c
@@ -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)
 {