diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-12-17 10:49:01 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-12-17 10:53:20 -0800 |
commit | e7086a9a301ffcfef17edbcba9e7c0312c33f7a8 (patch) | |
tree | ec4ecc86b0d5c13c2d4a4c58fa3ca2809f2e5b51 | |
parent | 6b8f1dd1a21ce49319795391e21adf645b64db3c (diff) | |
download | gnulib-e7086a9a301ffcfef17edbcba9e7c0312c33f7a8.tar.gz |
qacl: port to Windows better
See Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
* lib/file-has-acl.c (acl_access_nontrivial):
Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
!HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | lib/file-has-acl.c | 11 |
2 files changed, 15 insertions, 5 deletions
@@ -1,3 +1,12 @@ +2013-12-17 Paul Eggert <eggert@cs.ucla.edu> + + qacl: port to Windows better + See Eli Zaretskii in + <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>. + * lib/file-has-acl.c (acl_access_nontrivial): + Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY && + !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT. + 2013-12-12 Alexander V. Lukyanov <lav@netis.ru> md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode. diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c index bb8bae1286..53ac317c0b 100644 --- a/lib/file-has-acl.c +++ b/lib/file-has-acl.c @@ -75,8 +75,7 @@ acl_access_nontrivial (acl_t acl) } return got_one; -# else /* IRIX, Tru64 */ -# if HAVE_ACL_TO_SHORT_TEXT /* IRIX */ +# elif HAVE_ACL_TO_SHORT_TEXT /* IRIX */ /* Don't use acl_get_entry: it is undocumented. */ int count = acl->acl_cnt; @@ -93,8 +92,7 @@ acl_access_nontrivial (acl_t acl) } return 0; -# endif -# if HAVE_ACL_FREE_TEXT /* Tru64 */ +# elif HAVE_ACL_FREE_TEXT /* Tru64 */ /* Don't use acl_get_entry: it takes only one argument and does not work. */ int count = acl->acl_num; @@ -117,7 +115,10 @@ acl_access_nontrivial (acl_t acl) } return 0; -# endif +# else + + errno = ENOSYS; + return -1; # endif } |