mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user