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.
#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);
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)
{