From 19b98948e43f8c95e672f75a43a3bc65fa5edcd4 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 11 Aug 2014 21:42:09 -0400 Subject: [PATCH] Use 0666 to set files as writable. --- extensions/composer/Installer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/composer/Installer.php b/extensions/composer/Installer.php index 368206b725..3ac378d0ac 100644 --- a/extensions/composer/Installer.php +++ b/extensions/composer/Installer.php @@ -238,11 +238,10 @@ EOF foreach ((array) $options[self::EXTRA_WRITABLE] as $path) { echo "Setting writable: $path ..."; if (is_dir($path) || is_file($path)) { - chmod($path, 0777); + chmod($path, is_file($path) ? 0666 : 0777); echo "done\n"; } else { echo "The directory or file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path; - return; } } @@ -254,7 +253,6 @@ EOF echo "done\n"; } else { echo "\n\tThe directory or file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path . "\n"; - return; } }