Review Request 120388: Do not sync if wallet file does not exist

Arjun AK arjunak234 at gmail.com
Mon Dec 29 13:17:49 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120388/
-----------------------------------------------------------

(Updated Dec. 29, 2014, 6:47 p.m.)


Review request for KDE Frameworks, Àlex Fiestas, Teo Mrnjavac, and Valentin Rusu.


Changes
-------

1. Use static method QFile::Exists
2. When a wallet file is removed from kwalletd5 directory, remove corresponding entry from `_wallet`. This not only fixes the memory leak but also ensures that sync() doesn't get called in the first place.


Repository: kwallet


Description
-------

1. Create a new wallet "foo"
2. immediately remove the 'kwalletd5' directory
3. `KWalletD::timedOutSync()` will call sync on a nonexistant wallet (which will create "foo.kwl")

Kwalletmanager still lists the wallet and new data can be added to the wallet, but this data will be lost once the wallet is closed since the salt has been deleted and therefore the wallet cannot be opened again.


Diffs (updated)
-----

  src/runtime/kwalletd/backend/kwalletbackend.cc b072cec 
  src/runtime/kwalletd/kwalletd.h b94df15 
  src/runtime/kwalletd/kwalletd.cpp 882eb72 

Diff: https://git.reviewboard.kde.org/r/120388/diff/


Testing
-------


Thanks,

Arjun AK

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20141229/b39e021b/attachment.html>


More information about the Kde-frameworks-devel mailing list