From: Jim Meyering Date: Mon, 8 May 2000 16:53:36 +0000 (+0000) Subject: Don't use touch in root test. Instead, append to X-Git-Tag: FILEUTILS-4_0s~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1068a0005ae17ae49230225ba1d649530a71922b;p=thirdparty%2Fcoreutils.git Don't use touch in root test. Instead, append to the test file, since now touch operates even on files which deny owner write access. --- diff --git a/tests/shred/remove b/tests/shred/remove index 4ab11f4c0b..4b3801acd7 100755 --- a/tests/shred/remove +++ b/tests/shred/remove @@ -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 '********************************************'