1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Respect umask in chmod calls

This commit is contained in:
Jordi Boggiano 2012-04-19 20:03:09 +02:00
parent ada8d69507
commit 4a55d85a2d
2 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ EOT
$rfs->copy('getcomposer.org', $remoteFilename, $tempFilename);
try {
chmod($tempFilename, 0755);
chmod($tempFilename, 0777 & ~umask());
// test the phar validity
$phar = new \Phar($tempFilename);
// free the variable to unlock the file