]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
See whether a trailing slash is followed too far.
authorJim Meyering <jim@meyering.net>
Sun, 27 Jun 2004 09:42:45 +0000 (09:42 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 27 Jun 2004 09:42:45 +0000 (09:42 +0000)
tests/ln/misc

index cff452ba75b705cdf02715bebff56f0f32265a35..ab63a975bf087a114634133ee917c1638612ea90 100755 (executable)
@@ -44,6 +44,14 @@ ln -s ../$f $d || fail=1
 test -f $d/$f || fail=1
 rm -rf $d $f
 
+# See whether a trailing slash is followed too far.
+touch $f || framework_failure=1
+rm -rf $d || framework_failure=1
+mkdir $d $d/$f || framework_failure=1
+ln $f $d/ 2> /dev/null && fail=1
+ln -s $f $d/ 2> /dev/null && fail=1
+rm -rf $d $f
+
 # Make sure we get a failure with existing dest without -f option
 touch $t || framework_failure=1
 # FIXME: don't ignore the error message but rather test