From: Fabian Keil Date: Sun, 8 Feb 2009 12:56:51 +0000 (+0000) Subject: Call initialize_mutexes() before init_log_module() again. X-Git-Tag: v_3_0_11~91 X-Git-Url: http://www.privoxy.org/gitweb/misc.html?a=commitdiff_plain;h=34881c188c29c46b96e41918e0771a3a72873c45;p=privoxy.git Call initialize_mutexes() before init_log_module() again. Broken since r220, might be the cause of Lee's #2579448. --- diff --git a/jcc.c b/jcc.c index 76a491be..9c4ee5b6 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.220 2009/02/04 18:29:07 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.221 2009/02/06 18:02:58 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,11 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.220 2009/02/04 18:29:07 fabiankeil Exp $" * * Revisions : * $Log: jcc.c,v $ + * Revision 1.221 2009/02/06 18:02:58 fabiankeil + * When dropping privileges, also give up membership in supplementary + * groups. Thanks to Matthias Drochner for reporting the problem, + * providing the initial patch and testing the final version. + * * Revision 1.220 2009/02/04 18:29:07 fabiankeil * Initialize the log module before parsing arguments. * Thanks to Matthias Drochner for the report. @@ -3571,6 +3576,9 @@ int main(int argc, const char *argv[]) #endif ; + /* Prepare mutexes if supported and necessary. */ + initialize_mutexes(); + /* Enable logging until further notice. */ init_log_module(Argv[0]); @@ -3727,9 +3735,6 @@ int main(int argc, const char *argv[]) InitWin32(); #endif - /* Prepare mutexes if supported and necessary. */ - initialize_mutexes(); - random_seed = (unsigned int)time(NULL); #ifdef HAVE_RANDOM srandom(random_seed);