From a14481a96bb32a26a41c3495d90e31f53bc36e35 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 21 Dec 2015 11:12:06 +0100 Subject: [PATCH] CLI: Use a more restrict mode when creating the config directory resursively refs #10126 --- modules/setup/application/clicommands/ConfigCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setup/application/clicommands/ConfigCommand.php b/modules/setup/application/clicommands/ConfigCommand.php index bf73b543e..c1e2ef782 100644 --- a/modules/setup/application/clicommands/ConfigCommand.php +++ b/modules/setup/application/clicommands/ConfigCommand.php @@ -54,7 +54,7 @@ class ConfigCommand extends Command )); } - if (! file_exists($configDir) && ! @mkdir($configDir, 0777, true)) { + if (! file_exists($configDir) && ! @mkdir($configDir, 0755, true)) { $e = error_get_last(); $this->fail(sprintf( $this->translate('Can\'t create configuration directory %s: %s'),