Fix wrong bracket placing (luckily the code is unreleased)
[libi2ncommon] / src / daemonfunc.cpp
index b9a9402..ebeccfe 100644 (file)
@@ -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))