fix: 0700 instead of 0600 for mkdirall

This commit is contained in:
Evan Su 2025-04-13 18:54:00 -04:00
parent c63cf92672
commit 065a50d90e
2 changed files with 3 additions and 3 deletions

View file

@ -2486,7 +2486,7 @@ func unpackArchive(zipPath string) error {
// Make directory if current entry is a folder
if f.FileInfo().IsDir() {
if err := os.MkdirAll(outPath, f.Mode()); err != nil {
if err := os.MkdirAll(outPath, 0700); err != nil {
return err
}
}
@ -2505,7 +2505,7 @@ func unpackArchive(zipPath string) error {
outPath := filepath.Join(extractDir, f.Name)
// Otherwise create necessary parent directories
if err := os.MkdirAll(filepath.Dir(outPath), 0600); err != nil {
if err := os.MkdirAll(filepath.Dir(outPath), 0700); err != nil {
return err
}