1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-19 14:01:15 +02:00

cPanelDeployer: Preserve file permissions in ZipArchive

Reference: https://stackoverflow.com/a/53997599/1038828
This commit is contained in:
Deltik
2019-01-01 11:48:10 -06:00
parent 1b5182d011
commit 2a029220a7
2 changed files with 2 additions and 1 deletions

2
e107

Submodule e107 updated: 4d0c0601d0...0f96f7cabd

View File

@@ -362,6 +362,7 @@ class cPanelDeployer extends Deployer
empty($relpath)) continue;
$relpath = $prefix . $relpath;
$archive->addFile($realpath, $relpath);
$archive->setExternalAttributesName($relpath, ZipArchive::OPSYS_UNIX, fileperms($realpath) << 16);
}
$archive->close();