OSSP CVS Repository

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

Check-in Number: 340
Date: 2001-Jan-20 12:19:14 (local)
2001-Jan-20 11:19:14 (UTC)
User:rse
Branch:
Comment: Be careful, listname can be NULL in global operation mode and not all printf implementations are as smart as BSD's variant. Instead of printing "(null)" others just dump core.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/main.c      1.16 -> 1.17     2 inserted, 2 deleted

ossp-pkg/petidomo/main.c 1.16 -> 1.17

--- main.c       2001/01/19 15:27:58     1.16
+++ main.c       2001/01/20 11:19:14     1.17
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/main.c,v $
-   $Revision: 1.16 $
+   $Revision: 1.17 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -93,7 +93,7 @@
     /* Log a few helpful facts about this Petidomo instance. */
 
     syslog(LOG_DEBUG, "%s starting up; mode=%s, listname=%s, masterconf=%s, approved=%s, ruid=%d, euid=%d, gid=%d, egid=%d",
-           petidomo_version.v_gnu, mode, listname, masterconfig_path, (g_is_approved) ? "true" : "false",
+           petidomo_version.v_gnu, mode, (listname != NULL ? listname : "<none>"), masterconfig_path, (g_is_approved) ? "true" : "false",
            getuid(), geteuid(), getgid(), getegid());
 
     /* Init Petidomo's internal stuff. */

CVSTrac 2.0.1