Skip to content

Commit

Permalink
fix(snapshot): grant execution permissions to the snapshot dir for th…
Browse files Browse the repository at this point in the history
…e owner
  • Loading branch information
luchenqun committed Oct 29, 2023
1 parent 32151e5 commit 7db434b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (x/gov) [#17873](https://github.com/cosmos/cosmos-sdk/pull/17873) Fail any inactive and active proposals whose messages cannot be decoded.
* (simulation) [#17911](https://github.com/cosmos/cosmos-sdk/pull/17911) Fix all problems with executing command `make test-sim-custom-genesis-fast` for simulation test.
* (simulation) [#18196](https://github.com/cosmos/cosmos-sdk/pull/18196) Fix the problem of `validator set is empty after InitGenesis` in simulation test.
* (snapshot) [#18292](https://github.com/cosmos/cosmos-sdk/pull/18292) Grant execution permissions to the snapshot dir for the owner.

### API Breaking Changes

Expand Down
2 changes: 1 addition & 1 deletion server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,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, 0o644); err != nil {
if err := os.MkdirAll(snapshotDir, 0o744); err != nil {
return nil, fmt.Errorf("failed to create snapshots directory: %w", err)
}

Expand Down

0 comments on commit 7db434b

Please sign in to comment.