Skip to content

Commit

Permalink
Merge pull request #1193 from tp-tc/dangling-symlink
Browse files Browse the repository at this point in the history
Ignore the target of dangling symlinks.
  • Loading branch information
tejal29 committed May 4, 2020
2 parents a2af327 + 5061b72 commit ae11db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration/dockerfiles/Dockerfile_test_dangling_symlink
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM busybox:latest@sha256:b26cd013274a657b86e706210ddd5cc1f82f50155791199d29b9e86e935ce135
RUN ["/bin/ln", "-s", "nowhere", "/link"]
1 change: 1 addition & 0 deletions pkg/filesystem/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae11db4

Please sign in to comment.