]> source.dussan.org Git - nextcloud-server.git/commitdiff
Keep the modification time during decryptFile 19297/head
authorsammo2828 <sammo2828@gmail.com>
Sat, 1 Feb 2020 05:20:33 +0000 (16:20 +1100)
committerBackportbot <backportbot-noreply@rullzer.com>
Tue, 4 Feb 2020 14:55:59 +0000 (14:55 +0000)
lib/private/Encryption/DecryptAll.php

index 251b1f7d53cdcbe7f451e3819b2076786572b96f..f7351ec1bedf95183774b24b593e9df213fd16d6 100644 (file)
@@ -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)) {