mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
See whether a trailing slash is followed too far.
This commit is contained in:
parent
679ce113e4
commit
3d14a0d604
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user