Merge pull request #3688 from jeremy-derusse/improve-selfupdate-chmod
Reuse current file permissions in selfupdatepull/3580/merge
commit
27ce5ec336
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue