Commit eda098c0 authored by Dries's avatar Dries

- Patch #857300 by andypost: make drupal_install_mkdir() should use octal numbers.

parent 366334cb
...@@ -731,19 +731,19 @@ function drupal_install_mkdir($file, $mask, $message = TRUE) { ...@@ -731,19 +731,19 @@ function drupal_install_mkdir($file, $mask, $message = TRUE) {
if ($mask & $m) { if ($mask & $m) {
switch ($m) { switch ($m) {
case FILE_READABLE: case FILE_READABLE:
$mod += 444; $mod |= 0444;
break; break;
case FILE_WRITABLE: case FILE_WRITABLE:
$mod += 222; $mod |= 0222;
break; break;
case FILE_EXECUTABLE: case FILE_EXECUTABLE:
$mod += 111; $mod |= 0111;
break; break;
} }
} }
} }
if (@drupal_mkdir($file, intval("0$mod", 8))) { if (@drupal_mkdir($file, $mod)) {
return TRUE; return TRUE;
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment