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

This commit is contained in:
Martin Dosch 2019-02-21 13:00:43 +00:00
parent f61c0edda0
commit f4357fc51b

View File

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