补充目录权限扫描说明

This commit is contained in:
xuans committed 2026-09-22 03:43:39 +08:00
1 parent 3c831a6133
commit 0e434e3819
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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)
+1 -1
View File
@@ -693,7 +693,7 @@ func ensureManagedDirectoryAtRoot(root, directory string) error {
if statErr != nil || info.Mode()&os.ModeSymlink != 0 || !info.IsDir() {
return ErrUnsafeSSLFile
}
if err := os.Chmod(current, 0700); err != nil {
if err := os.Chmod(current, 0700); err != nil { // #nosec G302
return err
}
}