From 0e6bc97bf346abeb7076a5490c54331c70f71159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 23 Mar 2014 19:22:39 +0100 Subject: Set permissions on the accounts.json file so other users can't access it. --- logic/auth/MojangAccountList.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'logic/auth/MojangAccountList.cpp') diff --git a/logic/auth/MojangAccountList.cpp b/logic/auth/MojangAccountList.cpp index 70bc0cf2..e3621dac 100644 --- a/logic/auth/MojangAccountList.cpp +++ b/logic/auth/MojangAccountList.cpp @@ -402,6 +402,7 @@ bool MojangAccountList::saveList(const QString &filePath) // Write the JSON to the file. file.write(doc.toJson()); + file.setPermissions(QFile::ReadOwner|QFile::WriteOwner|QFile::ReadUser|QFile::WriteUser); file.close(); QLOG_INFO() << "Saved account list to" << path; -- cgit v1.2.3