diff options
author | Michael Klein <michael.klein@puffin.lb.shuttle.de> | 2015-12-09 20:34:11 +0100 |
---|---|---|
committer | Michael Klein <michael.klein@puffin.lb.shuttle.de> | 2015-12-09 20:34:11 +0100 |
commit | 84783bd6f0b9da40d3ce92d0a81e56d276d24eca (patch) | |
tree | 568c874d2075fa1c95ac20ea9bc701458a39338c /Settings.c | |
parent | ab3a7c2fa826932c9c297885b0ea33f1d880cc01 (diff) |
Fix fopen mode in Settings_read()
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |