mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-06-27 13:46:13 +02:00
fix: 0700 instead of 0600 for mkdirall
This commit is contained in:
parent
c63cf92672
commit
065a50d90e
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
<li>✓ Encrypt previously unencrypted temporary zip files</li>
|
||||
<li>✓ Add `.incomplete` to filenames while work is in progress</li>
|
||||
<li>✓ Use `encrypted-*.zip.pcv` output name instead of `Encrypted.zip.pcv`</li>
|
||||
<li>✓ Use 0600 permissions when auto unzipping for optimal security</li>
|
||||
<li>✓ Use 0700 permissions when auto unzipping and creating folders</li>
|
||||
</ul>
|
||||
|
||||
# v1.47 (Released 02/19/2025)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue