补充目录权限扫描说明

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
@@ -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
}
}