summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsammo2828 <sammo2828@gmail.com>2020-02-01 16:20:33 +1100
committerBackportbot <backportbot-noreply@rullzer.com>2020-02-04 14:55:59 +0000
commitb0c359ccd2cdcf886547b4b873a5040df6273f2f (patch)
treeed13cdbef2121ec2ec3ce8ed32e4264107fa24a9
parentdfe200bd4efd24184c9a7d8dde9c774779d1f593 (diff)
downloadnextcloud-server-b0c359ccd2cdcf886547b4b873a5040df6273f2f.tar.gz
nextcloud-server-b0c359ccd2cdcf886547b4b873a5040df6273f2f.zip
Keep the modification time during decryptFile
-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)) {