[kmymoney] [Bug 436647] Overwriting a gpg-encrypted file results in a zero byte file

Thomas Baumgart bugzilla_noreply at kde.org
Wed May 12 07:33:45 BST 2021


https://bugs.kde.org/show_bug.cgi?id=436647

Thomas Baumgart <thb at net-bembel.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Version Fixed In|                            |5.1.2
      Latest Commit|                            |https://invent.kde.org/offi
                   |                            |ce/kmymoney/commit/39785a3d
                   |                            |80c56dc6e53f301d76c41bcc8ca
                   |                            |048c6
             Status|REPORTED                    |RESOLVED

--- Comment #2 from Thomas Baumgart <thb at net-bembel.de> ---
Git commit 39785a3d80c56dc6e53f301d76c41bcc8ca048c6 by Thomas Baumgart.
Committed on 12/05/2021 at 06:33.
Pushed by tbaumgart into branch '5.1'.

Solve problems with usage of QTemporaryFile on MS-Windows

A call to QTemporaryFile::close() may not close the file but only rewind
the file pointer to the beginning allwing faster re-open. This causes
problems on MS-Windows filesystems, as one cannot e.g. rename the
temporary file in this case because it is still kept open from the
perspective of the filesystem. Only destroying the object really closes
the file on the filesystem.

This change makes sure, that the QTemporaryFile object only lives as
long as it is needed and closed immediately after by destroying the
object.
FIXED-IN: 5.1.2

M  +18   -10   kmymoney/plugins/xml/xmlstorage.cpp

https://invent.kde.org/office/kmymoney/commit/39785a3d80c56dc6e53f301d76c41bcc8ca048c6

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list