From 0ec36fda44f8e7c792dc5713789e611e6884a18a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 23 Oct 1999 13:18:10 +0000 Subject: [PATCH] *** empty log message *** --- tests/touch/dangling-symlink | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tests/touch/dangling-symlink 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 -- 2.47.3