]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't use touch in root test. Instead, append to
authorJim Meyering <jim@meyering.net>
Mon, 8 May 2000 16:53:36 +0000 (16:53 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 8 May 2000 16:53:36 +0000 (16:53 +0000)
the test file, since now touch operates even on files which deny owner
write access.

tests/shred/remove

index 4ab11f4c0b2ec330052094ab0541a00b464693d3..4b3801acd739c56a1a3c1ab7874cb64c9deb5942 100755 (executable)
@@ -23,7 +23,7 @@ if test $framework_failure = 1; then
   exit 1
 fi
 
-touch $tmp/file >/dev/null 2>&1 && {
+echo foo >> $tmp/file >/dev/null 2>&1 && {
   echo '********************************************'
   echo 'NOTICE: This test case cannot be run as root.'
   echo '********************************************'