From: Jim Meyering Date: Mon, 27 Nov 2000 08:01:57 +0000 (+0000) Subject: Use touch with `-d tomorrow' to avoid race condition. X-Git-Tag: FILEUTILS-4_0_33~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d33f54f74fef54a099cbb15dd581c2ac95fb8ba7;p=thirdparty%2Fcoreutils.git Use touch with `-d tomorrow' to avoid race condition. --- diff --git a/tests/touch/no-rights b/tests/touch/no-rights index 2babd6814f..3906564a8d 100755 --- a/tests/touch/no-rights +++ b/tests/touch/no-rights @@ -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