From: Jim Meyering Date: Sun, 28 Sep 1997 16:33:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: TEXTUTILS-1_22c~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=40dfaeed5ca129c202301f6685cf58de6f03729a;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/rm/sunos-1 b/tests/rm/sunos-1 index 7a45d1f513..241013e3b5 100755 --- a/tests/rm/sunos-1 +++ b/tests/rm/sunos-1 @@ -1,4 +1,8 @@ #!/bin/sh +# Make sure that rm -rf '' fails. +# On SunOS 4.1.3, running rm -rf '' in a nonempty directory may +# actually remove files with names of entries in the current directory +# but relative to `/' rather than relative to the current directory. : ${RM=rm} test=sunos-1 @@ -20,7 +24,7 @@ fi fail=0 cd $tmp -$RM '' > /dev/null 2>&1 && fail=1 +$RM -rf '' > /dev/null 2>&1 && fail=1 cd .. rm -rf $tmp