From fbebf30b9826018e06342969660ef940ce443f30 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sat, 6 Jun 2020 09:55:45 -0400 Subject: 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 --- tests/gui/TestGuiFdoSecrets.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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(), 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(), 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(), rawItem); } -- cgit v1.2.3