From 797d7f58f18107976336fdcde9fd20cd97a0d483 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 6 Sep 2011 11:32:18 +0200 Subject: [PATCH] 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. --- ChangeLog | 4 ++++ lib/file-has-acl.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index cfdb8f22a0..5d5a4788d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-09-06 Bruno Haible + 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. + acl: Fix a test failure on AIX >= 5.3 with NFS. * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS as no ACL. 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) -- 2.39.5