From 797d7f58f18107976336fdcde9fd20cd97a0d483 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 6 Sep 2011 11:32:18 +0200 Subject: 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. --- lib/file-has-acl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/file-has-acl.c') 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) -- cgit v1.2.1