summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-03-23 19:22:39 +0100
committerPetr Mrázek <peterix@gmail.com>2014-03-23 19:22:39 +0100
commit0e6bc97bf346abeb7076a5490c54331c70f71159 (patch)
tree8bf878eda88a27a79f739144c94bd166c082740d /logic
parent4a24ea6c38015a1a1d937c85b9caedaf5ce251d8 (diff)
downloadMultiMC-0e6bc97bf346abeb7076a5490c54331c70f71159.tar
MultiMC-0e6bc97bf346abeb7076a5490c54331c70f71159.tar.gz
MultiMC-0e6bc97bf346abeb7076a5490c54331c70f71159.tar.lz
MultiMC-0e6bc97bf346abeb7076a5490c54331c70f71159.tar.xz
MultiMC-0e6bc97bf346abeb7076a5490c54331c70f71159.zip
Set permissions on the accounts.json file so other users can't access it.
Diffstat (limited to 'logic')
-rw-r--r--logic/auth/MojangAccountList.cpp1
1 files changed, 1 insertions, 0 deletions
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;