From 3738bfdf171102d218a53a495decdc2110726b85 Mon Sep 17 00:00:00 2001 From: Vikas Date: Wed, 12 Apr 2023 01:00:06 -0500 Subject: [PATCH] 755 permissions when creating directory (#180) --- pathutil/pathutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathutil/pathutil.go b/pathutil/pathutil.go index 947c97c..822aa0d 100644 --- a/pathutil/pathutil.go +++ b/pathutil/pathutil.go @@ -44,7 +44,7 @@ func UserHomeDir() string { func EnsureDirExist(dir string) error { exist, err := IsDirExists(dir) if !exist || err != nil { - return os.MkdirAll(dir, 0777) + return os.MkdirAll(dir, 0755) } return nil }