Fix permissions when using the PearBinaryInstaller
The PearBinaryInstaller is old and not used by many people, so the world writable permissions weren't caughtpull/7075/merge
parent
f857da7c29
commit
b90987fdeb
|
@ -61,9 +61,9 @@ class PearBinaryInstaller extends BinaryInstaller
|
||||||
{
|
{
|
||||||
parent::initializeBinDir();
|
parent::initializeBinDir();
|
||||||
file_put_contents($this->binDir.'/composer-php', $this->generateUnixyPhpProxyCode());
|
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());
|
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)
|
protected function generateWindowsProxyCode($bin, $link)
|
||||||
|
|
Loading…
Reference in New Issue