Skip to content

Commit 832d84e

Browse files
author
Shanti Bouchez-Mongardé
committed
When initializing datastore, create directory with correct permissions.
1 parent 2a3ab23 commit 832d84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ipfs/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func initCmd(c *commander.Command, inp []string) error {
7373
cfg.Datastore.Type = "leveldb"
7474

7575
// Construct the data store if missing
76-
if err := os.MkdirAll(dspath, os.ModeDir); err != nil {
76+
if err := os.MkdirAll(dspath, os.ModePerm); err != nil {
7777
return err
7878
}
7979

0 commit comments

Comments
 (0)