Skip to content

Commit

Permalink
Merge pull request #22 from karalabe/autocreate-datadir-permission
Browse files Browse the repository at this point in the history
tor: fix folder permission (+x) for auto-created datadir
  • Loading branch information
cretz authored Dec 5, 2018
2 parents 465b965 + ecb6237 commit 62912bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tor/tor.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func Start(ctx context.Context, conf *StartConf) (*Tor, error) {
}
tor.Debugf("Created temp data directory at: %v", tor.DataDir)
tor.DeleteDataDirOnClose = !conf.RetainTempDataDir
} else if err := os.MkdirAll(tor.DataDir, 0600); err != nil {
} else if err := os.MkdirAll(tor.DataDir, 0700); err != nil {
return nil, fmt.Errorf("Unable to create data dir: %v", err)
}

Expand Down

0 comments on commit 62912bf

Please sign in to comment.