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:
parent
ada8d69507
commit
4a55d85a2d
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue