From: Bruno Haible <bruno@clisp.org>
Date: Sun, 30 Aug 2009 22:53:46 +0000 (+0200)
Subject: Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66f908f4f1d28881f035ee35c429cc7a4430be74;p=pspp

Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
---

diff --git a/ChangeLog b/ChangeLog
index 61f949aa86..7dee308a12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-30  Bruno Haible  <bruno@clisp.org>
+
+	Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
+	* lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
+	ENOSYS.
+
 2009-08-30  Bruno Haible  <bruno@clisp.org>
 
 	* tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
diff --git a/lib/set-mode-acl.c b/lib/set-mode-acl.c
index a24b9f348c..34076db202 100644
--- a/lib/set-mode-acl.c
+++ b/lib/set-mode-acl.c
@@ -234,7 +234,7 @@ qset_acl (char const *name, int desc, mode_t mode)
   acl_free (aclp);
   if (ret < 0)
     {
-      if (saved_errno == ENOSYS)
+      if (saved_errno == ENOSYS || saved_errno == EOPNOTSUPP)
 	return chmod_or_fchmod (name, desc, mode);
       errno = saved_errno;
       return -1;