diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-01-19 17:49:11 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-01-19 18:27:43 +0000 |
commit | 7c2e4234093542c61c6c0c7e2a91878f602dbf22 (patch) | |
tree | 933c95eda4138394587f88ece86d8362425ac602 /tests | |
parent | b4f10133bf8995f55c7ce56d6828b4a3efdda046 (diff) | |
download | coreutils-7c2e4234093542c61c6c0c7e2a91878f602dbf22.tar.xz |
tests: avoid false failure due to remove() ignoring u-w on NFS
* 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.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mv/perm-1.sh | 2 | ||||
-rwxr-xr-x | tests/rm/cycle.sh | 2 | ||||
-rwxr-xr-x | tests/rm/rm1.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/mv/perm-1.sh b/tests/mv/perm-1.sh index f793c0188..651856887 100755 --- a/tests/mv/perm-1.sh +++ b/tests/mv/perm-1.sh @@ -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 diff --git a/tests/rm/cycle.sh b/tests/rm/cycle.sh index d5dbb9e4f..483b748e1 100755 --- a/tests/rm/cycle.sh +++ b/tests/rm/cycle.sh @@ -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 diff --git a/tests/rm/rm1.sh b/tests/rm/rm1.sh index 85a5b27aa..7893958e4 100755 --- a/tests/rm/rm1.sh +++ b/tests/rm/rm1.sh @@ -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. |