When initializing datastore, create directory with correct permissions.
Shanti Bouchez-Mongardé committed
Sep 26, 2014 at 21:42 UTC
832d84ef3c59f212dbed0ca1502c47463be0839a
1 file changed
+1
-1
cmd/ipfs/init.go
+1
-1
@@ -73,7 +73,7 @@ func initCmd(c *commander.Command, inp []string) error {
73
cfg.Datastore.Type = "leveldb"
74
75
// 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 {
77
return err
78
}
79