Merge pull request #205 from maxpoulin64/I-194
Restrict access to the home directory by default
This commit is contained in:
commit
1150d646cb
@ -15,7 +15,7 @@ if (program.home) {
|
||||
|
||||
var config = Helper.HOME + "/config.js";
|
||||
if (!fs.existsSync(config)) {
|
||||
mkdirp.sync(Helper.HOME);
|
||||
mkdirp.sync(Helper.HOME, {mode: "0700"});
|
||||
fs.writeFileSync(
|
||||
config,
|
||||
fs.readFileSync(__dirname + "/../../defaults/config.js")
|
||||
|
Loading…
Reference in New Issue
Block a user