projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3074778
)
Don't try to remove writeable files in a sticky /tmp directory, as
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 19 Sep 2004 07:11:16 +0000
(07:11 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 19 Sep 2004 07:11:16 +0000
(07:11 +0000)
SVR4-like systems (e.g., Solaris 9) let you remove such files.
tests/rm/fail-eperm
patch
|
blob
|
history
diff --git
a/tests/rm/fail-eperm
b/tests/rm/fail-eperm
index
dcb112d
..
22dd1f7
100755
(executable)
--- 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;