From: Jim Meyering Date: Sat, 23 Oct 1999 13:18:10 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: FILEUTILS-4_0j-trial~155 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ec36fda44f8e7c792dc5713789e611e6884a18a;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/touch/dangling-symlink b/tests/touch/dangling-symlink new file mode 100755 index 0000000000..c7cde334c8 --- /dev/null +++ b/tests/touch/dangling-symlink @@ -0,0 +1,19 @@ +#!/bin/sh +# Make sure touch can create a file through a dangling symlink. +# This was broken in the 4.0[e-i] test releases. + +if test "$VERBOSE" = yes; then + set -x + touch --version +fi + +fail=0 +ln -s touch-target t-symlink + +# This used to infloop. +touch t-symlink || fail=1 + +test -f touch-target || fail=1 +rm -f touch-target t-symlink + +exit $fail