]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure due to remove() ignoring u-w on NFS
authorPádraig Brady <P@draigBrady.com>
Tue, 19 Jan 2016 17:49:11 +0000 (17:49 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 19 Jan 2016 18:27:43 +0000 (18:27 +0000)
* tests/rm/rm1.sh: Also remove the group write bit which
was required on one NFS setup at least.  Note u-w was
enough to deny file creation, g-w was also required to
deny file removal.
* tests/rm/cycle.sh: Likewise.
* tests/mv/perm-1.sh: Likewise.

tests/mv/perm-1.sh
tests/rm/cycle.sh
tests/rm/rm1.sh

index f793c01885be076ab472dda65f207e0b48de161b..65185688797e1d85cc0c022201443053e425408b 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ mv
 skip_if_root_
 
 mkdir -p no-write/dir || framework_failure_
-chmod u-w no-write || framework_failure_
+chmod ug-w no-write || framework_failure_
 
 
 mv no-write/dir . > out 2>&1 && fail=1
index d5dbb9e4f7f1e7d438731458d0694a8e9f13c971..483b748e1f6c3f5641d11af573e5d6a8bd2b17a7 100755 (executable)
@@ -22,7 +22,7 @@ skip_if_root_
 
 mkdir -p a/b
 touch a/b/file
-chmod u-w a/b
+chmod ug-w a/b
 
 
 rm -rf a a 2>&1 | sed 's/:[^:]*$//' > out || fail=1
index 85a5b27aa26b51183a85026ebcb8725bbc503586..7893958e45233f9e92b70b3f5a6940af08849bd2 100755 (executable)
@@ -21,7 +21,7 @@ print_ver_ rm
 skip_if_root_
 
 mkdir -p b/a/p b/c b/d || framework_failure_
-chmod u-w b/a || framework_failure_
+chmod ug-w b/a || framework_failure_
 
 
 # This should fail.