Fix fopen mode in Settings_read()

This commit is contained in:
Michael Klein 2015-12-09 20:34:11 +01:00
parent ab3a7c2fa8
commit 84783bd6f0
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static bool Settings_read(Settings* this, const char* fileName) {
uid_t euid = geteuid();
seteuid(getuid());
fd = fopen(fileName, "w");
fd = fopen(fileName, "r");
seteuid(euid);
if (!fd)
return false;