Explorar el Código

Merge branch '1.6'

Jordi Boggiano hace 7 años
padre
commit
ef46a8afa4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Composer/Installer/PearBinaryInstaller.php

+ 2 - 2
src/Composer/Installer/PearBinaryInstaller.php

@@ -61,9 +61,9 @@ class PearBinaryInstaller extends BinaryInstaller
     {
         parent::initializeBinDir();
         file_put_contents($this->binDir.'/composer-php', $this->generateUnixyPhpProxyCode());
-        @chmod($this->binDir.'/composer-php', 0777);
+        @chmod($this->binDir.'/composer-php', 0777 & ~umask());
         file_put_contents($this->binDir.'/composer-php.bat', $this->generateWindowsPhpProxyCode());
-        @chmod($this->binDir.'/composer-php.bat', 0777);
+        @chmod($this->binDir.'/composer-php.bat', 0777 & ~umask());
     }
 
     protected function generateWindowsProxyCode($bin, $link)