Merge pull request #1193 from tp-tc/dangling-symlink
Ignore the target of dangling symlinks.
This commit is contained in:
commit
ae11db43d7
|
|
@ -0,0 +1,2 @@
|
||||||
|
FROM busybox:latest@sha256:b26cd013274a657b86e706210ddd5cc1f82f50155791199d29b9e86e935ce135
|
||||||
|
RUN ["/bin/ln", "-s", "nowhere", "/link"]
|
||||||
|
|
@ -73,6 +73,7 @@ func ResolvePaths(paths []string, wl []util.WhitelistEntry) (pathsToAdd []string
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Debugf("symlink path %s, target does not exist", f)
|
logrus.Debugf("symlink path %s, target does not exist", f)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the given path is a symlink and the target is part of the whitelist
|
// If the given path is a symlink and the target is part of the whitelist
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue