1 parent
200a399b4d
commit
3f3ee2c0e1
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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user