mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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.
This commit is contained in:
1 parent
3074778063
commit
d98eed0845
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user