Set permissions on the accounts.json file so other users can't access it.
This commit is contained in:
parent
4a24ea6c38
commit
0e6bc97bf3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue