From: Thomas Jarosch Date: Mon, 17 Oct 2011 08:58:58 +0000 (+0200) Subject: Fix wrong bracket placing (luckily the code is unreleased) X-Git-Tag: v2.6~35 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=a6238e6300d56d82ffc0a78f6415c9dc11743f19;p=libi2ncommon Fix wrong bracket placing (luckily the code is unreleased) --- diff --git a/src/daemonfunc.cpp b/src/daemonfunc.cpp index b9a9402..ebeccfe 100644 --- 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))