From 3dd1a520cdcb3e7cf64413bbe315358f149f2595 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Tue, 9 Jul 2024 21:46:58 +0200 Subject: [PATCH] Recommend access rights of 400 for config file. --- parseconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parseconfig.go b/parseconfig.go index 3e148d9..4e901e3 100644 --- a/parseconfig.go +++ b/parseconfig.go @@ -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) } }