From: Jim Meyering Date: Sun, 31 Jan 1999 18:51:08 +0000 (+0000) Subject: new test: Create a hard link to a dangling symlink. X-Git-Tag: TEXTUTILS-1_22h~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f0e21b7ca54b64d484fc2582d1b24a500caff17;p=thirdparty%2Fcoreutils.git new test: Create a hard link to a dangling symlink. --- diff --git a/tests/ln/misc b/tests/ln/misc index 45cedbcd7b..6fe4363010 100755 --- a/tests/ln/misc +++ b/tests/ln/misc @@ -93,6 +93,10 @@ touch a b || test_failure=1 ln b b~ || test_failure=1 ln -V simple -f -b a b || fail=1 +# Create a hard link to a dangling symlink. +ln -s /no-such-dir || fail=1 +ln no-such-dir hard-to-dangle || fail=1 + cd .. ../../src/rm -rf $tmp