]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use touch with `-d tomorrow' to avoid race condition.
authorJim Meyering <jim@meyering.net>
Mon, 27 Nov 2000 08:01:57 +0000 (08:01 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 Nov 2000 08:01:57 +0000 (08:01 +0000)
tests/touch/no-rights

index 2babd6814f07dcdccfeabedb1c3209488d446301..3906564a8db237a41e886f4d5c4cee2daee5c297 100755 (executable)
@@ -25,7 +25,7 @@ set x `ls -t $t1 $t2`
 test "$*" = "x $t2 $t1" || fail=1
 
 chmod 0 $t1
-touch -c $t1 || fail=1
+touch -d tomorrow -c $t1 || fail=1
 
 set x `ls -t $t1 $t2`
 test "$*" = "x $t1 $t2" || fail=1