Skip to content

Commit

Permalink
Fix GoSec warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Zavhorodnii committed Jun 10, 2024
1 parent 7ded0b8 commit 58e9cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/zip.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func unzip(src string, dest string) ([]string, error) {
filenames = append(filenames, path)
if f.FileInfo().IsDir() {
// Make Folder
_ = os.MkdirAll(path, os.ModePerm)
_ = os.MkdirAll(path, 0700)
continue
}
// Make File
if err = os.MkdirAll(filepath.Dir(path), os.ModePerm); err != nil {
if err = os.MkdirAll(filepath.Dir(path), 0700); err != nil {
return filenames, err
}
if path != filepath.Clean(path) {
Expand Down

0 comments on commit 58e9cea

Please sign in to comment.