summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-19 07:11:16 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-19 07:11:16 +0000
commitd98eed0845584a20e67bc9ddac2395f09d66c1df (patch)
tree30fdca1dce7c1fefdb5b2cd0243c18f4a0ccd371 /tests
parent30747780638bc579e67cd825af6299145087237a (diff)
downloadcoreutils-d98eed0845584a20e67bc9ddac2395f09d66c1df.tar.xz
Don't try to remove writeable files in a sticky /tmp directory, as
SVR4-like systems (e.g., Solaris 9) let you remove such files.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/rm/fail-eperm4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm
index dcb112dcc..22dd1f728 100755
--- a/tests/rm/fail-eperm
+++ b/tests/rm/fail-eperm
@@ -60,7 +60,9 @@ foreach my $dir (@dir_list)
# Skip files owned by self, symlinks, and directories.
# It's not technically necessary to skip symlinks, but it's simpler.
- -l $target_file || -o _ || -d _
+ # SVR4-like systems (e.g., Solaris 9) let you unlink files that
+ # you can write, so skip writable files too.
+ -l $target_file || -o _ || -d _ || -w _
and next;
$found_file = 1;