From 346fb83abe55458209e24bb4b28162d1698d0abc Mon Sep 17 00:00:00 2001 From: Maxime Poulin Date: Sat, 19 Mar 2016 16:33:15 -0400 Subject: [PATCH] Restrict access to the home directory by default Follow up on #165 Closes #194 --- src/command-line/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command-line/index.js b/src/command-line/index.js index 171ed053..d1df42f0 100644 --- a/src/command-line/index.js +++ b/src/command-line/index.js @@ -23,7 +23,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")