diff options
author | Max Rees <maxcrees@me.com> | 2020-02-17 17:32:47 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-04-12 03:25:27 +0000 |
commit | 3fa4f7fe62265cf49a597d708042422e338a4bec (patch) | |
tree | 43221ef7d815a2788b7cbddc182f5438b6641b60 /user/nextcloud/dont-chmod.patch | |
parent | f61f55116a4e330ebf108cbca934be02a06d6873 (diff) | |
download | packages-3fa4f7fe62265cf49a597d708042422e338a4bec.tar.gz packages-3fa4f7fe62265cf49a597d708042422e338a4bec.tar.bz2 packages-3fa4f7fe62265cf49a597d708042422e338a4bec.tar.xz packages-3fa4f7fe62265cf49a597d708042422e338a4bec.zip |
user/nextcloud: bump to 15.0.14
* Remove nextcloud-user_external
"Unbundle user_external to release it via appstore (server#13329)"
https://github.com/nextcloud/server/pull/13329
* +depends=openssl
The file /etc/ssl/openssl.cnf is now required (and provided by the
package `openssl')
Diffstat (limited to 'user/nextcloud/dont-chmod.patch')
-rw-r--r-- | user/nextcloud/dont-chmod.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/nextcloud/dont-chmod.patch b/user/nextcloud/dont-chmod.patch new file mode 100644 index 000000000..02510fcb0 --- /dev/null +++ b/user/nextcloud/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 +@@ -137,9 +137,6 @@ class File implements IWriter, IFileBase + } + $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); +--- 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') { |