Fix wrong bracket placing (luckily the code is unreleased)
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 08:58:58 +0000 (10:58 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 08:58:58 +0000 (10:58 +0200)
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))