summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorsammo2828 <sammo2828@gmail.com>2020-02-01 16:20:33 +1100
committerGitHub <noreply@github.com>2020-02-01 16:20:33 +1100
commitbb0c69524b026e4d40fc5c717b99d4f48b69cd5a (patch)
tree787da1a37846b9902879aec8467c76f6cadc3314 /lib
parent7b5072ab617ee28d37914690b865f835bc03efae (diff)
downloadnextcloud-server-bb0c69524b026e4d40fc5c717b99d4f48b69cd5a.tar.gz
nextcloud-server-bb0c69524b026e4d40fc5c717b99d4f48b69cd5a.zip
Keep the modification time during decryptFile
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Encryption/DecryptAll.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php
index 251b1f7d53c..f7351ec1bed 100644
--- a/lib/private/Encryption/DecryptAll.php
+++ b/lib/private/Encryption/DecryptAll.php
@@ -266,6 +266,7 @@ class DecryptAll {
try {
$this->rootView->copy($source, $target);
+ $this->rootView->touch($target, $fileInfo->getMTime());
$this->rootView->rename($target, $source);
} catch (DecryptionFailedException $e) {
if ($this->rootView->file_exists($target)) {