From 34881c188c29c46b96e41918e0771a3a72873c45 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 8 Feb 2009 12:56:51 +0000 Subject: [PATCH] Call initialize_mutexes() before init_log_module() again. Broken since r220, might be the cause of Lee's #2579448. --- jcc.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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); -- 2.39.2