From a333ce43a69a46af29067fa3dbc262cb01ca36cf Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sat, 20 Jan 2001 11:19:14 +0000 Subject: [PATCH] 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. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 6dcd691..48fe9da 100644 --- a/main.c +++ b/main.c @@ -93,7 +93,7 @@ main(int argc, char * argv[]) /* 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 : ""), masterconfig_path, (g_is_approved) ? "true" : "false", getuid(), geteuid(), getgid(), getegid()); /* Init Petidomo's internal stuff. */