diff options
author | Jim Meyering <jim@meyering.net> | 2004-06-27 09:42:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-06-27 09:42:45 +0000 |
commit | 3d14a0d60463be68ee73a55b0cdbd62923c22c70 (patch) | |
tree | 8b69904a2763141368fe919bbd482e815d8375bb | |
parent | 679ce113e4774501f327737679d97a26b9a0b533 (diff) | |
download | coreutils-3d14a0d60463be68ee73a55b0cdbd62923c22c70.tar.xz |
See whether a trailing slash is followed too far.
-rwxr-xr-x | tests/ln/misc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ln/misc b/tests/ln/misc index cff452ba7..ab63a975b 100755 --- a/tests/ln/misc +++ b/tests/ln/misc @@ -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 |