git://developer.intra2net.com
/
libi2ncommon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix wrong bracket placing (luckily the code is unreleased)
[libi2ncommon]
/
src
/
daemonfunc.cpp
diff --git
a/src/daemonfunc.cpp
b/src/daemonfunc.cpp
index
b9a9402
..
ebeccfe
100644
(file)
--- a/
src/daemonfunc.cpp
+++ b/
src/daemonfunc.cpp
@@
-92,7
+92,7
@@
bool drop_root_privileges(const std::string &username,
}
// Initialize additional groups the user is a member of
- if (initgroups(username.c_str(), getgid() == -1))
+ if (initgroups(username.c_str(), getgid()) == -1)
return false;
if (setuid(my_user.Uid))