mirror of https://github.com/xzeldon/htop.git
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();
|
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;
|
||||||
|
|
Loading…
Reference in New Issue