From 44aa9e8cbaa5a4830eb9eb7289cd9a2f7a637160 Mon Sep 17 00:00:00 2001 From: Claudio d'Angelis Date: Thu, 13 Apr 2023 09:27:41 +0200 Subject: [PATCH] fix permissions when creating config dir --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 0d7cb52..9b644dc 100644 --- a/config/config.go +++ b/config/config.go @@ -38,7 +38,7 @@ func New(app application.App) Config { _, err = os.Stat(v.ConfigFileUsed()) if os.IsNotExist(err) { - if err := os.MkdirAll(filepath.Dir(v.ConfigFileUsed()), os.ModeDir); err != nil { + if err := os.MkdirAll(filepath.Dir(v.ConfigFileUsed()), os.ModeDir|os.ModePerm); err != nil { panic(err) } file, err := os.Create(v.ConfigFileUsed())