diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-06 11:32:18 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-06 11:32:18 +0200 |
commit | 797d7f58f18107976336fdcde9fd20cd97a0d483 (patch) | |
tree | 86d9b5aa4e7ca17856d5d6aed22e582353641f82 /lib/file-has-acl.c | |
parent | 7d68533bb99e3d1c8a83bea02ea7cf402125777c (diff) | |
download | gnulib-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.c | 2 |
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) |