cli/setup: Do not use umask(0)

chmod is not affected in any way by the umask.
This commit is contained in:
Eric Lippmann 2014-12-30 15:33:01 +01:00
parent 082cdd6dd2
commit f84a9a6529

View File

@ -53,9 +53,7 @@ class ConfigCommand extends Command
return false;
}
$old = umask(0); // Prevent $mode from being mangled by the system's umask ($old)
chmod($config, $mode);
umask($old);
if (chgrp($config, $group) === false) {
$this->fail(sprintf($this->translate('Unable to change the group of "%s" to "%s".'), $config, $group));