summaryrefslogtreecommitdiff
path: root/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go
index 2120310..f8b2f65 100644
--- a/config/config.go
+++ b/config/config.go
@@ -852,9 +852,13 @@ func (config *AercConfig) LoadBinds(binds *ini.File, baseName string, baseGroup
// printing the fix on stdout and returning an error
func checkConfigPerms(filename string) error {
info, err := os.Stat(filename)
- if err != nil {
+ if errors.Is(err, os.ErrNotExist) {
return nil // disregard absent files
}
+ if err != nil {
+ return err
+ }
+
perms := info.Mode().Perm()
// group or others have read access
if perms&044 != 0 {