>From f067b0cbf5c86b5613a14fff55b2500dba5f0771 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 11 Jan 2012 01:54:25 +0100 Subject: [PATCH 3/5] 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 ca333ec..61d4103 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: Tweak. * 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 762d3c1..dc36b0d 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 a318396..9b9f033 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) { -- 1.6.3.2