OSSP CVS Repository

ossp - Check-in [321]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 321
Date: 2001-Jan-19 15:26:48 (local)
2001-Jan-19 14:26:48 (UTC)
User:simons
Branch:
Comment: Moved the initial startup log message up so that it is logged before the main config file is parsed. Also added the path of the main config file to the message so that people can see where Petidomo locks for it in case parsing fails.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/main.c      1.12 -> 1.13     6 inserted, 6 deleted

ossp-pkg/petidomo/main.c 1.12 -> 1.13

--- main.c       2001/01/19 14:09:48     1.12
+++ main.c       2001/01/19 14:26:48     1.13
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/main.c,v $
-   $Revision: 1.12 $
+   $Revision: 1.13 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -86,6 +86,11 @@
     argv_version_string = "Petidomo";
     argv_process(args, argc, argv);
 
+    /* Log a few helpful facts about this Petidomo instance. */
+
+    syslog(LOG_DEBUG, "Petidomo starting up; mode=%s, listname=%s, masterconf=%s, approved=%s, ruid=%d, euid=%d, gid=%d, egid=%d",
+           mode, listname, masterconfig_path, (g_is_approved) ? "true" : "false", getuid(), geteuid(), getgid(), getegid());
+
     /* Init Petidomo's internal stuff. */
 
     if (InitPetidomo(masterconfig_path) != 0) {
@@ -103,11 +108,6 @@
         exit(1);
     }
 
-    /* Log a few helpful facts about this Petidomo instance. */
-
-    syslog(LOG_DEBUG, "Petidomo starting up; mode=%s, listname=%s, approved=%s, ruid=%d, euid=%d, gid=%d, egid=%s",
-           mode, listname, (g_is_approved) ? "true" : "false", getuid(), geteuid(), getgid(), getegid());
-
     /* Now decide what we actually do with the mail. */
 
     if (strcasecmp("listserv", mode) == 0)

CVSTrac 2.0.1