fix: use a lower file permission in file creation (#18206)
This commit is contained in:
+1
-1
@@ -533,7 +533,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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user