From b09fe2c15babae0f58690e4d754f76d50c286668 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 11 Jan 2012 01:54:25 +0100 Subject: [PATCH] acl: Export qcopy_acl. * lib/acl.h (qcopy_acl): New declaration. * lib/copy-acl.c (qcopy_acl): Make non-static. --- ChangeLog | 4 ++++ lib/acl.h | 5 +++-- lib/copy-acl.c | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3b589df8d..6e97da1ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2012-01-10 Bruno Haible + 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. diff --git a/lib/acl.h b/lib/acl.h index 762d3c118..dc36b0d2a 100644 --- a/lib/acl.h +++ b/lib/acl.h @@ -21,7 +21,8 @@ #include 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); diff --git a/lib/copy-acl.c b/lib/copy-acl.c index a318396ad..9b9f033dd 100644 --- 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) { -- 2.11.0