PERFORCE change 147155 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Aug 11 15:02:06 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=147155

Change 147155 by trasz at trasz_traszkan on 2008/08/11 15:01:07

	For some reason, mkdir(2) with permissions equal to 01755 results
	in mode 0755, without sticky bit.  Work around this.  With this change,
	ZFS passes regression tests.  For now.  ;-)

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/tools/regression/fstest/tests/granular/02.t#3 edit

Differences ...

==== //depot/projects/soc2008/trasz_nfs4acl/tools/regression/fstest/tests/granular/02.t#3 (text+ko) ====

@@ -5,7 +5,7 @@
 dir=`dirname $0`
 . ${dir}/../misc.sh
 
-echo "1..52"
+echo "1..53"
 
 n0=`namegen`
 n1=`namegen`
@@ -90,7 +90,8 @@
 expect 0 unlink ${n0}
 
 # Check whether modifying the ACL by not-owner preserves the sticky bit.
-expect 0 mkdir ${n0} 01755
+expect 0 mkdir ${n0} 0755
+expect 0 chmod ${n0} 01755
 expect 0 prependacl ${n0} user:65534:write_acl::allow
 expect 0 -u 65534 -g 65534 prependacl ${n0} user:65534:write_data::allow
 expect 01755 stat ${n0} mode


More information about the p4-projects mailing list