From: Paul Eggert Date: Sun, 19 Sep 2004 07:11:16 +0000 (+0000) Subject: Don't try to remove writeable files in a sticky /tmp directory, as X-Git-Tag: v5.3.0~672 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d98eed0845584a20e67bc9ddac2395f09d66c1df;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm index dcb112dccc..22dd1f7283 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;