diff options
author | sammo2828 <sammo2828@gmail.com> | 2020-02-01 16:20:33 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 16:20:33 +1100 |
commit | bb0c69524b026e4d40fc5c717b99d4f48b69cd5a (patch) | |
tree | 787da1a37846b9902879aec8467c76f6cadc3314 /lib | |
parent | 7b5072ab617ee28d37914690b865f835bc03efae (diff) | |
download | nextcloud-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.php | 1 |
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)) { |