From a6238e6300d56d82ffc0a78f6415c9dc11743f19 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 17 Oct 2011 10:58:58 +0200 Subject: [PATCH] Fix wrong bracket placing (luckily the code is unreleased) --- src/daemonfunc.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)) -- 1.7.1