mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 16:52:30 +02:00
Merge pull request #1193 from tp-tc/dangling-symlink
Ignore the target of dangling symlinks.
This commit is contained in:
@@ -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)
|
||||
continue
|
||||
}
|
||||
|
||||
// If the given path is a symlink and the target is part of the whitelist
|
||||
|
||||
Reference in New Issue
Block a user