Skip to content

Commit

Permalink
fix: use a lower file permission in file creation (backport #18206) (#…
Browse files Browse the repository at this point in the history
…18263)

Co-authored-by: Marko <[email protected]>
  • Loading branch information
mergify[bot] and tac0turtle authored Oct 26, 2023
1 parent d895753 commit 0bc6756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func DefaultBaseappOptions(appOpts types.AppOptions) []func(*baseapp.BaseApp) {
func GetSnapshotStore(appOpts types.AppOptions) (*snapshots.Store, error) {
homeDir := cast.ToString(appOpts.Get(flags.FlagHome))
snapshotDir := filepath.Join(homeDir, "data", "snapshots")
if err := os.MkdirAll(snapshotDir, os.ModePerm); err != nil {
if err := os.MkdirAll(snapshotDir, 0o644); err != nil {
return nil, fmt.Errorf("failed to create snapshots directory: %w", err)
}

Expand Down

0 comments on commit 0bc6756

Please sign in to comment.