mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-05 10:57:07 +03: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();
|
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…
x
Reference in New Issue
Block a user