fix: handle os.chmod errors (#457)
This commit is contained in:
@@ -556,3 +556,8 @@ func RandomString(length int) string {
|
||||
}
|
||||
return string(b)
|
||||
}
|
||||
|
||||
func ManagePerms(path string) error {
|
||||
err := os.Chmod(path, 0600)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user