From a9ccfeb548600e0fbe90232dd661a8b82b93d49b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 16 Apr 2012 14:39:53 +0200 Subject: [PATCH] chmod new file when running self-update --- src/Composer/Command/SelfUpdateCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index 659b2e747..28efe3a9f 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -53,6 +53,7 @@ EOT $rfs->copy('getcomposer.org', $remoteFilename, $tempFilename); try { + chmod($tempFilename, 0755); // test the phar validity $phar = new \Phar($tempFilename); // free the variable to unlock the file