Merge pull request #1193 from tp-tc/dangling-symlink

Ignore the target of dangling symlinks.
This commit is contained in:
Tejal Desai 2020-05-03 20:47:12 -07:00 committed by GitHub
commit ae11db43d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,2 @@
FROM busybox:latest@sha256:b26cd013274a657b86e706210ddd5cc1f82f50155791199d29b9e86e935ce135
RUN ["/bin/ln", "-s", "nowhere", "/link"]

View File

@ -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