diff options
Diffstat (limited to 'user/nextcloud/dont-chmod.patch')
-rw-r--r-- | user/nextcloud/dont-chmod.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/user/nextcloud/dont-chmod.patch b/user/nextcloud/dont-chmod.patch index 02510fcb0..7a0476ffb 100644 --- a/user/nextcloud/dont-chmod.patch +++ b/user/nextcloud/dont-chmod.patch @@ -10,13 +10,13 @@ // 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); +--- nextcloud/lib/private/Log/File.php 2020-11-18 13:53:48.000000000 -0500 ++++ nextcloud/lib/private/Log/File.php 2020-12-04 01:01:17.090166495 -0500 +@@ -80,9 +80,6 @@ class File extends LogDetails implements + public function write(string $app, $message, int $level) { + $entry = $this->logDetailsAsJSON($app, $message, $level); $handle = @fopen($this->logFile, 'a'); -- if ($this->logFileMode > 0 && (fileperms($this->logFile) & 0777) != $this->logFileMode) { +- if ($this->logFileMode > 0 && is_file($this->logFile) && (fileperms($this->logFile) & 0777) != $this->logFileMode) { - @chmod($this->logFile, $this->logFileMode); - } if ($handle) { |