mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Fix fopen mode in Settings_read()
This commit is contained in:
parent
ab3a7c2fa8
commit
84783bd6f0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user