Adding test case for symlink causes infinit loop, reproduces: dotcloud#5370

normally symlinks are created as either
ln -s /path/existing /path/new-name
or
cd /path && ln -s ./existing new-name

but one can create it this way
cd /path && ln -s existing new-name

this drives FollowSymlinkInScope into infinite loop

Docker-DCO-1.1-Signed-off-by: Lajos Papp <lajos.papp@sequenceiq.com> (github: lalyos)
This commit is contained in:
lalyos 2014-05-15 23:52:36 +02:00
parent 9b677d0733
commit 64b6d99e35
2 changed files with 14 additions and 0 deletions

1
symlink/testdata/fs/i vendored Symbolic link
View file

@ -0,0 +1 @@
a