1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-22 21:40:43 +01: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
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637
2 changed files with 2 additions and 1 deletions

2
e107

@ -1 +1 @@
Subproject commit 4d0c0601d0ed89112b5045da81937146b5d19b8f
Subproject commit 0f96f7cabddfb4690497fc6b22f25da2f4330de2

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();