Commit 84783bd6 authored by Michael Klein's avatar Michael Klein
Browse files

Fix fopen mode in Settings_read()

parent ab3a7c2f
...@@ -158,7 +158,7 @@ static bool Settings_read(Settings* this, const char* fileName) { ...@@ -158,7 +158,7 @@ static bool Settings_read(Settings* this, const char* fileName) {
uid_t euid = geteuid(); uid_t euid = geteuid();
seteuid(getuid()); seteuid(getuid());
fd = fopen(fileName, "w"); fd = fopen(fileName, "r");
seteuid(euid); seteuid(euid);
if (!fd) if (!fd)
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment