add integration test for --workdir=/
Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: tiborvass)
This commit is contained in:
parent
517b10352f
commit
09930dae8f
1 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,6 @@ func FollowSymlinkInScope(link, root string) (string, error) {
|
|||
return root, nil
|
||||
}
|
||||
|
||||
|
||||
if !strings.HasPrefix(filepath.Dir(link), root) {
|
||||
return "", fmt.Errorf("%s is not within %s", link, root)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue