diff options
author | Bruno Haible <bruno@clisp.org> | 2008-06-07 20:11:23 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-06-07 20:11:23 +0200 |
commit | 07beaf87b0e3bfe2b33f65a9b29cca37f214429c (patch) | |
tree | 7067249e22bd84a47be101cec79cc0e0d225aba1 /lib/copy-acl.c | |
parent | 6c66c78cf660406b603dd24772afab13f6e885c9 (diff) | |
download | gnulib-07beaf87b0e3bfe2b33f65a9b29cca37f214429c.tar.gz |
Trivial stylistic improvements.
Diffstat (limited to 'lib/copy-acl.c')
-rw-r--r-- | lib/copy-acl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/copy-acl.c b/lib/copy-acl.c index d94f8871d7..d0817265c3 100644 --- a/lib/copy-acl.c +++ b/lib/copy-acl.c @@ -39,13 +39,13 @@ static int qcopy_acl (const char *src_name, int source_desc, const char *dst_name, int dest_desc, mode_t mode) { - int ret; - #if USE_ACL && HAVE_ACL_GET_FILE /* POSIX 1003.1e (draft 17 -- abandoned) specific version. */ /* Linux, FreeBSD, MacOS X, IRIX, Tru64 */ acl_t acl; + int ret; + if (HAVE_ACL_GET_FD && source_desc != -1) acl = acl_get_fd (source_desc); else @@ -124,6 +124,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name, #elif USE_ACL && defined ACL_NO_TRIVIAL /* Solaris 10 NFSv4 ACLs. */ + int ret; acl_t *aclp = NULL; ret = (source_desc < 0 ? acl_get (src_name, ACL_NO_TRIVIAL, &aclp) @@ -155,8 +156,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name, #else - ret = qset_acl (dst_name, dest_desc, mode); - return ret; + return qset_acl (dst_name, dest_desc, mode); #endif } |