aboutsummaryrefslogtreecommitdiffstats
path: root/main/nextcloud/nextcloud10-dont-chmod-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/nextcloud/nextcloud10-dont-chmod-config.patch')
-rw-r--r--main/nextcloud/nextcloud10-dont-chmod-config.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/nextcloud/nextcloud10-dont-chmod-config.patch b/main/nextcloud/nextcloud10-dont-chmod-config.patch
new file mode 100644
index 0000000000..fac1313848
--- /dev/null
+++ b/main/nextcloud/nextcloud10-dont-chmod-config.patch
@@ -0,0 +1,12 @@
+--- a/lib/private/Config.php
++++ b/lib/private/Config.php
+@@ -229,9 +229,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