Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
84783bd6
Commit
84783bd6
authored
Dec 09, 2015
by
Michael Klein
Browse files
Fix fopen mode in Settings_read()
parent
ab3a7c2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Settings.c
View file @
84783bd6
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment