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.
This commit is contained in:
parent
0e34ed74d9
commit
a333ce43a6
2
main.c
2
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 : "<none>"), masterconfig_path, (g_is_approved) ? "true" : "false",
|
||||
getuid(), geteuid(), getgid(), getegid());
|
||||
|
||||
/* Init Petidomo's internal stuff. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user