From: Joachim Schmitz Date: Mon, 5 Sep 2011 22:34:33 +0000 (+0200) Subject: acl: Avoid errors on NonStop Kernel. X-Git-Tag: v0.1~1953 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=794c770c24fa69bee4b9826ff8ccceac59fa79bb;p=gnulib.git acl: Avoid errors on NonStop Kernel. * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and ENOTSUP errors. --- diff --git a/ChangeLog b/ChangeLog index cb4433962..87cc585e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-09-05 Joachim Schmitz (tiny change) + Bruno Haible + + acl: Avoid errors on NonStop Kernel. + * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and + ENOTSUP errors. + 2011-09-05 Bruno Haible acl: Clean up Solaris code. diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c index 6fd9c25b6..892b53965 100644 --- a/lib/file-has-acl.c +++ b/lib/file-has-acl.c @@ -810,7 +810,12 @@ file_has_acl (char const *name, struct stat const *sb) count = acl ((char *) name, ACL_CNT, NACLENTRIES, NULL); if (count < 0) - return -1; + { + if (errno == ENOSYS || errno == ENOTSUP) + break; + else + return -1; + } if (count == 0) return 0;