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
2 changed files with 3 additions and 0 deletions
@@ -0,0 +1,2 @@
FROM busybox:latest@sha256:b26cd013274a657b86e706210ddd5cc1f82f50155791199d29b9e86e935ce135
RUN ["/bin/ln", "-s", "nowhere", "/link"]
+1
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)
continue
}
// If the given path is a symlink and the target is part of the whitelist