Skip to content
Snippets Groups Projects
Commit b662bd7b authored by Fabian Seidl's avatar Fabian Seidl
Browse files

add execute flag to dir creation

parent 9187fcd7
No related branches found
No related tags found
No related merge requests found
Pipeline #249856 passed
This commit is part of merge request !1168. Comments created here will be created in the context of that merge request.
......@@ -154,7 +154,7 @@ func initConfig() {
func ensureFileSystemPathExists(pathToFile string) error {
emptyString := []byte("")
// create folder if it does not exist
if err := os.MkdirAll(configHome, 0600); err != nil {
if err := os.MkdirAll(configHome, 0700); err != nil {
return err
}
// create file if it does not exist
......
......@@ -58,7 +58,7 @@ func ensureFileSystemStoreExists(pathToStore string) error {
func ensureDirExists(fileName string) error {
dirName := filepath.Dir(fileName)
if _, serr := os.Stat(dirName); serr != nil {
merr := os.MkdirAll(dirName, 0600)
merr := os.MkdirAll(dirName, 0700)
if merr != nil {
return merr
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment