补充目录权限扫描说明
This commit is contained in:
1 parent
3c831a6133
commit
0e434e3819
5 files changed
+5
-5
No files matched your search
@@ -985,7 +985,7 @@ func writeLegacyMigrationBackup(directory string, data []byte, now time.Time) (s
|
||||
if err != nil || info.Mode()&os.ModeSymlink != 0 || !info.IsDir() {
|
||||
return "", ErrManagerStorage
|
||||
}
|
||||
if err := os.Chmod(backupDirectory, 0700); err != nil {
|
||||
if err := os.Chmod(backupDirectory, 0700); err != nil { // #nosec G302
|
||||
return "", err
|
||||
}
|
||||
token := make([]byte, 8)
|
||||
|
||||
Reference in new issue
Block a user