From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 23 Jul 2012 12:55:25 +0000 (+0000)
Subject: Revert 1.381 which wasn't a style change after all
X-Git-Tag: v_3_0_20~302
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/man-page/faq/@default-cgi@/diff?a=commitdiff_plain;h=caa58c93e5fde8c326eae15ce7595d99bc4bd6b7;p=privoxy.git

Revert 1.381 which wasn't a style change after all
---

diff --git a/jcc.c b/jcc.c
index face11b5..91173c5c 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.381 2012/07/23 12:40:52 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.382 2012/07/23 12:42:53 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -3193,9 +3193,12 @@ int main(int argc, char **argv)
       {
          log_error(LOG_LEVEL_FATAL, "Cannot setgid(): Insufficient permissions.");
       }
-      if ((NULL != grp) && setgroups(1, &grp->gr_gid))
+      if (NULL != grp)
       {
-         log_error(LOG_LEVEL_FATAL, "setgroups() failed: %E");
+         if (setgroups(1, &grp->gr_gid))
+         {
+            log_error(LOG_LEVEL_FATAL, "setgroups() failed: %E");
+         }
       }
       else if (initgroups(pw->pw_name, pw->pw_gid))
       {