changeset 4869:f123f22fc641

6590376 Fails to chmod on a zfs volume with windows ACL
author marks
date Wed, 15 Aug 2007 13:03:59 -0700
parents c6bd4d2c0e8a
children 6d40a9319837
files usr/src/uts/common/fs/zfs/zfs_acl.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/zfs_acl.c	Wed Aug 15 11:20:45 2007 -0700
+++ b/usr/src/uts/common/fs/zfs/zfs_acl.c	Wed Aug 15 13:03:59 2007 -0700
@@ -168,6 +168,13 @@
 
 	for (i = 0, acep = aclp->z_acl;
 	    i != aclp->z_acl_count; i++, acep++) {
+
+		/*
+		 * Skip over inherit only ACEs
+		 */
+		if (acep->a_flags & ACE_INHERIT_ONLY_ACE)
+			continue;
+
 		entry_type = (acep->a_flags & ACE_TYPE_FLAGS);
 		if (entry_type == ACE_OWNER) {
 			if ((acep->a_access_mask & ACE_READ_DATA) &&