From 9f0e21b7ca54b64d484fc2582d1b24a500caff17 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 31 Jan 1999 18:51:08 +0000 Subject: [PATCH] new test: Create a hard link to a dangling symlink. --- tests/ln/misc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.3