summaryrefslogtreecommitdiff
path: root/lib/file-has-acl.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-06 11:32:18 +0200
committerBruno Haible <bruno@clisp.org>2011-09-06 11:32:18 +0200
commit797d7f58f18107976336fdcde9fd20cd97a0d483 (patch)
tree86d9b5aa4e7ca17856d5d6aed22e582353641f82 /lib/file-has-acl.c
parent7d68533bb99e3d1c8a83bea02ea7cf402125777c (diff)
downloadgnulib-797d7f58f18107976336fdcde9fd20cd97a0d483.tar.gz
acl: Update for AIX >= 5.3 with NFS.
* lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with ENOSYS as no ACL.
Diffstat (limited to 'lib/file-has-acl.c')
-rw-r--r--lib/file-has-acl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c
index 892b539652..ddae4fe0d9 100644
--- a/lib/file-has-acl.c
+++ b/lib/file-has-acl.c
@@ -746,6 +746,8 @@ file_has_acl (char const *name, struct stat const *sb)
type.u64 = ACL_ANY;
if (aclx_get (name, 0, &type, aclbuf, &aclsize, &mode) >= 0)
break;
+ if (errno == ENOSYS)
+ return 0;
if (errno != ENOSPC)
{
if (acl != aclbuf)