aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud15-dont-chmod.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-12-13 08:08:12 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-12-13 08:10:50 +0000
commita676b0b681b13240a7d2492fa6f4a4fc79aabc13 (patch)
tree6e70a8ea3fc4497339f0739d7f85d35065fc47d2 /community/nextcloud/nextcloud15-dont-chmod.patch
parentcec4a14bb00862c9149039638c5fe467eebae658 (diff)
downloadaports-a676b0b681b13240a7d2492fa6f4a4fc79aabc13.tar.bz2
aports-a676b0b681b13240a7d2492fa6f4a4fc79aabc13.tar.xz
community/nextcloud: upgrade to v15.0.0
Diffstat (limited to 'community/nextcloud/nextcloud15-dont-chmod.patch')
-rw-r--r--community/nextcloud/nextcloud15-dont-chmod.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/nextcloud/nextcloud15-dont-chmod.patch b/community/nextcloud/nextcloud15-dont-chmod.patch
new file mode 100644
index 0000000000..b7474b9986
--- /dev/null
+++ b/community/nextcloud/nextcloud15-dont-chmod.patch
@@ -0,0 +1,46 @@
+--- 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/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') {
+diff --git a/lib/private/Log/File.php b/lib/private/Log/File.php
+index 6810e25..3a9e872 100644
+--- a/lib/private/Log/File.php
++++ b/lib/private/Log/File.php
+@@ -137,9 +137,6 @@ class File implements IWriter, IFileBased {
+ }
+ $entry = json_encode($entry, JSON_PARTIAL_OUTPUT_ON_ERROR);
+ $handle = @fopen($this->logFile, 'a');
+- if ($this->logFileMode > 0 && (fileperms($this->logFile) & 0777) != $this->logFileMode) {
+- @chmod($this->logFile, $this->logFileMode);
+- }
+ if ($handle) {
+ fwrite($handle, $entry."\n");
+ fclose($handle);