Skip to content

Commit

Permalink
Preserve permissions when extracting zip files (#4478)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadel authored Mar 4, 2021
1 parent 5d91452 commit 1919b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ func Unzip(src, dest, pathToUnzip string) ([]string, error) {
return filenames, err
}

outFile, err := os.OpenFile(fpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, ModeReadWriteFile)
outFile, err := os.OpenFile(fpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, f.Mode())
if err != nil {
return filenames, err
}
Expand Down

0 comments on commit 1919b30

Please sign in to comment.