mirror of
https://salsa.debian.org/mdosch/go-sendxmpp
synced 2024-11-17 03:25:33 +00:00
Recommend access rights of 400 for config file.
This commit is contained in:
parent
5fb133eb01
commit
3dd1a520cd
@ -76,7 +76,7 @@ func parseConfig(configPath string) (configuration, error) {
|
||||
perm := info.Mode().Perm()
|
||||
permissions := strconv.FormatInt(int64(perm), 8)
|
||||
if permissions != "600" && permissions != "640" && permissions != "440" && permissions != "400" {
|
||||
return output, fmt.Errorf("parseConfig: wrong permissions for %s: %s instead of 400, 440, 600 or 640", configPath, permissions)
|
||||
return output, fmt.Errorf("parseConfig: wrong permissions for %s: %s instead of 400 (recommended), 440, 600 or 640", configPath, permissions)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user