summaryrefslogtreecommitdiff
path: root/tests/shred
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-08 16:53:36 +0000
committerJim Meyering <jim@meyering.net>2000-05-08 16:53:36 +0000
commit1068a0005ae17ae49230225ba1d649530a71922b (patch)
tree6cfc3f23b2eadb1269226ea2559e86947b84b985 /tests/shred
parentcf197bb14aa8cd9b9bcf6f9853884172b9d4a0e0 (diff)
downloadcoreutils-1068a0005ae17ae49230225ba1d649530a71922b.tar.xz
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.
Diffstat (limited to 'tests/shred')
-rwxr-xr-xtests/shred/remove2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shred/remove b/tests/shred/remove
index 4ab11f4c0..4b3801acd 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 '********************************************'