diff options
author | Jonathan White <support@dmapps.us> | 2020-06-06 16:55:45 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-06-07 23:00:56 +0300 |
commit | fbebf30b9826018e06342969660ef940ce443f30 (patch) | |
tree | 665e0ebe76dc6dd8c36c88f88fb4d1335d47421f /tests/gui | |
parent | 1ad01844735f8de794a5b0f0089fa79067d9e0cd (diff) |
Fix permissions changing on database save
* Saving a database in unsafe mode retains the existing permissions on the kdbx file
* New databases (save as, save backup, new database) and new key files are saved with 0600 permissions (user read/write), fixes #2575
Diffstat (limited to 'tests/gui')
-rw-r--r-- | tests/gui/TestGuiFdoSecrets.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gui/TestGuiFdoSecrets.cpp b/tests/gui/TestGuiFdoSecrets.cpp index c869aac4f..deccc26d3 100644 --- a/tests/gui/TestGuiFdoSecrets.cpp +++ b/tests/gui/TestGuiFdoSecrets.cpp @@ -680,7 +680,7 @@ void TestGuiFdoSecrets::testCollectionCreate() QCOMPARE(spyCollectionCreated.count(), 1); { - auto args = spyCollectionCreated.takeFirst(); + args = spyCollectionCreated.takeFirst(); QCOMPARE(args.size(), 1); QCOMPARE(args.at(0).value<Collection*>(), coll); } @@ -754,7 +754,7 @@ void TestGuiFdoSecrets::testCollectionDelete() QCOMPARE(spyCollectionDeleted.count(), 1); { - auto args = spyCollectionDeleted.takeFirst(); + args = spyCollectionDeleted.takeFirst(); QCOMPARE(args.size(), 1); QCOMPARE(args.at(0).value<Collection*>(), rawColl); } @@ -977,7 +977,7 @@ void TestGuiFdoSecrets::testItemDelete() QCOMPARE(spyItemDeleted.count(), 1); { - auto args = spyItemDeleted.takeFirst(); + args = spyItemDeleted.takeFirst(); QCOMPARE(args.size(), 1); QCOMPARE(args.at(0).value<Item*>(), rawItem); } |