Skip to content

Commit 3d2b414

Browse files
committed
update
Signed-off-by: Hang Yan <[email protected]>
1 parent c696d19 commit 3d2b414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/compress/compress.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func UnpackReader(fs afero.Fs, file io.Reader, useGzip bool, targetDir string) e
7676
if err != nil {
7777
return err
7878
}
79-
targetPath, err := sanitizeExtractPath(targetDir, header.Name)
79+
targetPath, err := sanitizeExtractPath(header.Name, targetDir)
8080
if err != nil {
8181
return err
8282
}

0 commit comments

Comments
 (0)