diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-09-10 12:48:06 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-09-10 12:48:11 +0000 |
commit | 47f79cb6dea41ead16e5daa05f35f83d99499b04 (patch) | |
tree | 8108ccb721e469a59ff3f5905a53ca91c9459fb5 /community/nextcloud/nextcloud14-dont-chmod.patch | |
parent | 38d8a7c2ca995bf1fc1c310303941fcad35ae429 (diff) | |
download | aports-47f79cb6dea41ead16e5daa05f35f83d99499b04.tar.bz2 aports-47f79cb6dea41ead16e5daa05f35f83d99499b04.tar.xz |
community/nextcloud: upgrade to 14.0.0
Diffstat (limited to 'community/nextcloud/nextcloud14-dont-chmod.patch')
-rw-r--r-- | community/nextcloud/nextcloud14-dont-chmod.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/nextcloud/nextcloud14-dont-chmod.patch b/community/nextcloud/nextcloud14-dont-chmod.patch new file mode 100644 index 0000000000..13b5e3efbf --- /dev/null +++ b/community/nextcloud/nextcloud14-dont-chmod.patch @@ -0,0 +1,44 @@ +--- a/lib/private/Config.php ++++ b/lib/private/Config.php +@@ -240,9 +240,6 @@ + touch ($this->configFilePath); + $filePointer = fopen($this->configFilePath, 'r+'); + +- // Prevent others not to read the config +- chmod($this->configFilePath, 0640); +- + // File does not exist, this can happen when doing a fresh install + if(!is_resource ($filePointer)) { + // TODO fix this via DI once it is very clear that this doesn't cause side effects due to initialization order +--- a/lib/private/Log/File.php ++++ b/lib/private/Log/File.php +@@ -134,9 +134,6 @@ + } + $entry = json_encode($entry, JSON_PARTIAL_OUTPUT_ON_ERROR); + $handle = @fopen($this->logFile, 'a'); +- if ((fileperms($this->logFile) & 0777) != 0640) { +- @chmod($this->logFile, 0640); +- } + if ($handle) { + fwrite($handle, $entry."\n"); + fclose($handle); +--- a/lib/private/TempManager.php ++++ b/lib/private/TempManager.php +@@ -95,7 +95,6 @@ + if($postFix !== '') { + $fileNameWithPostfix = $this->buildFileNameWithSuffix($file, $postFix); + touch($fileNameWithPostfix); +- chmod($fileNameWithPostfix, 0600); + $this->current[] = $fileNameWithPostfix; + return $fileNameWithPostfix; + } +--- a/lib/private/legacy/util.php ++++ b/lib/private/legacy/util.php +@@ -1008,7 +1008,6 @@ + . ' cannot be listed by other users.'); + $perms = substr(decoct(@fileperms($dataDirectory)), -3); + if (substr($perms, -1) !== '0') { +- chmod($dataDirectory, 0770); + clearstatcache(); + $perms = substr(decoct(@fileperms($dataDirectory)), -3); + if ($perms[2] !== '0') { |