Set permissions on the accounts.json file so other users can't access it.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user