1
0
Fork 0

Reuse current file permissions

pull/3688/head
Jérémy Derussé 2015-01-28 20:00:16 +01:00
parent 2697673666
commit e7f4014018
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ EOT
protected function setLocalPhar($localFilename, $newFilename, $backupTarget = null) protected function setLocalPhar($localFilename, $newFilename, $backupTarget = null)
{ {
try { try {
@chmod($newFilename, 0777 & ~umask()); @chmod($newFilename, fileperms($localFilename));
if (!ini_get('phar.readonly')) { if (!ini_get('phar.readonly')) {
// test the phar validity // test the phar validity
$phar = new \Phar($newFilename); $phar = new \Phar($newFilename);