Changed output for wrong file permissions to also mention 400 as valid access rights.

http_upload
Martin Dosch 6 years ago
parent f61c0edda0
commit f4357fc51b

@ -68,7 +68,7 @@ func parseConfig(configPath string) (configuration, error) {
permissions := strconv.FormatInt(int64(perm), 8)
if permissions != "600" && permissions != "400" {
return output, errors.New("Wrong permissions for " + configPath + ": " +
permissions + " instead of 600.")
permissions + " instead of 400 or 600.")
}
// Open config file.

Loading…
Cancel
Save