Skip to content

Commit 638df97

Browse files
authored
[4.4] Fix permission issues on certain ISP (#43473)
* Fix permission issues on certain ISP * Add comments ---------
1 parent 9dd4c95 commit 638df97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

administrator/components/com_joomlaupdate/extract.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,9 @@ private function processTypeFileUncompressed(): bool
14061406
if ($this->dataReadLength == 0) {
14071407
// Before processing file data, ensure permissions are adequate
14081408
$this->setCorrectPermissions($this->fileHeader->file);
1409+
1410+
// This file is changed during the script's operation so we clear the status cache.
1411+
clearstatcache($this->fileHeader->file);
14091412
}
14101413

14111414
// Open the output file
@@ -1497,6 +1500,9 @@ private function processTypeFileCompressed(): bool
14971500
// Before processing file data, ensure permissions are adequate
14981501
$this->setCorrectPermissions($this->fileHeader->file);
14991502

1503+
// This file is changed during the script's operation so we clear the status cache.
1504+
clearstatcache($this->fileHeader->file);
1505+
15001506
// Open the output file
15011507
$outfp = @fopen($this->fileHeader->realFile, 'wb');
15021508

0 commit comments

Comments
 (0)