setup: Convert octal directory mode to decimal notation

PHP's chmod sets wrong permissions when using 2770 as directory mode for example.

fixes #8233
This commit is contained in:
Eric Lippmann 2015-01-16 13:13:13 +01:00
parent 35e090c17e
commit e93e8f6330
1 changed files with 2 additions and 2 deletions

View File

@ -16,12 +16,12 @@ class MakeDirStep extends Step
/**
* @param array $paths
* @param int $dirmode
* @param int $dirmode Directory mode in octal notation
*/
public function __construct($paths, $dirmode)
{
$this->paths = $paths;
$this->dirmode = $dirmode;
$this->dirmode = octdec($dirmode);
$this->errors = array();
}