[csw-devel] SF.net SVN: gar:[19960] csw/mgar/pkg/sed/trunk/files/ 0001-Enhance-Solaris-ACL-error-handling.patch

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Dec 26 10:18:23 CET 2012


Revision: 19960
          http://gar.svn.sourceforge.net/gar/?rev=19960&view=rev
Author:   wahwah
Date:     2012-12-26 09:18:20 +0000 (Wed, 26 Dec 2012)
Log Message:
-----------
sed/trunk: updating the patch

Modified Paths:
--------------
    csw/mgar/pkg/sed/trunk/files/0001-Enhance-Solaris-ACL-error-handling.patch

Modified: csw/mgar/pkg/sed/trunk/files/0001-Enhance-Solaris-ACL-error-handling.patch
===================================================================
--- csw/mgar/pkg/sed/trunk/files/0001-Enhance-Solaris-ACL-error-handling.patch	2012-12-25 11:44:08 UTC (rev 19959)
+++ csw/mgar/pkg/sed/trunk/files/0001-Enhance-Solaris-ACL-error-handling.patch	2012-12-26 09:18:20 UTC (rev 19960)
@@ -14,45 +14,22 @@
 
 Signed-off-by: Ben Walton <bwalton at opencsw.org>
 ---
- lib/copy-acl.c     |    4 ++--
- lib/set-mode-acl.c |    2 +-
- 2 files changed, 3 insertions(+), 3 deletions(-)
+ lib/copy-acl.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/lib/copy-acl.c b/lib/copy-acl.c
-index af85a08..55999ec 100644
+index 5cc75e1..cebc8e8 100644
 --- a/lib/copy-acl.c
 +++ b/lib/copy-acl.c
-@@ -253,7 +253,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name,
+@@ -212,7 +212,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name,
  
        if (ace_count < 0)
- 	{
--	  if (errno == ENOSYS || errno == EINVAL)
-+	  if (errno == ENOSYS || errno == EINVAL || errno == EOPNOTSUPP)
- 	    {
- 	      ace_count = 0;
- 	      ace_entries = NULL;
-@@ -358,7 +358,7 @@ qcopy_acl (const char *src_name, int source_desc, const char *dst_name,
-       if (ret < 0 && saved_errno == 0)
- 	{
- 	  saved_errno = errno;
--	  if (errno == ENOSYS && !acl_nontrivial (count, entries))
-+	  if ((errno == ENOSYS || errno == EOPNOTSUPP) && !acl_nontrivial (count, entries))
- 	    saved_errno = 0;
- 	}
-       else
-diff --git a/lib/set-mode-acl.c b/lib/set-mode-acl.c
-index a24b9f3..28c6d4e 100644
---- a/lib/set-mode-acl.c
-+++ b/lib/set-mode-acl.c
-@@ -387,7 +387,7 @@ qset_acl (char const *name, int desc, mode_t mode)
-       ret = acl (name, SETACL, sizeof (entries) / sizeof (aclent_t), entries);
-     if (ret < 0)
-       {
--	if (errno == ENOSYS)
-+	if (errno == ENOSYS || errno == EOPNOTSUPP)
- 	  return chmod_or_fchmod (name, desc, mode);
- 	return -1;
-       }
+         {
+-          if (errno == ENOSYS || errno == EINVAL)
++          if (errno == ENOSYS || errno == EINVAL  || errno == EOPNOTSUPP)
+             {
+               ace_count = 0;
+               ace_entries = NULL;
 -- 
-1.7.3.2
+1.8.0
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list