Skip to content

Commit

Permalink
Correct directory permissions on direction creation, credit to JUSHJU…
Browse files Browse the repository at this point in the history
…SH on discord.
  • Loading branch information
pwood committed Jul 20, 2024
1 parent 1a60e67 commit 3a2a94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func New(dir string) persistence.Section {

dirWithoutPathSep, _ := strings.CutSuffix(dir, string(os.PathSeparator))
f.dir = fmt.Sprintf("%s%c", dirWithoutPathSep, os.PathSeparator)
_ = os.MkdirAll(f.dir, 600)
_ = os.MkdirAll(f.dir, 0700)

f.load()

Expand Down

0 comments on commit 3a2a94e

Please sign in to comment.