Skip to content

Commit

Permalink
fix: Fixed sanitation of symlinks during extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Oct 13, 2023
1 parent 8f2bd39 commit b86dd72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/archive/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func pathIsInsideTarget(target string, candidate string) error {
realPath, err := filepath.EvalSymlinks(cleanPath)
if os.IsNotExist(err) {
log.Tracef("Path does not exist (yet): %s\n", cleanPath)
realPath = cleanPath

} else if err != nil {
return fmt.Errorf("ExtractTarGz: EvalSymlinks() failed: %s", err.Error())
Expand Down

0 comments on commit b86dd72

Please sign in to comment.