Added a message that is logged every time Petidomo starts up. This

message will "dump" the configuration of Petidomo so that the user has
a clue which Petidomo instance is doing what.
This commit is contained in:
Peter Simons 2001-01-19 14:09:48 +00:00
parent 0670963e12
commit dfa298ce19

5
main.c
View File

@ -103,6 +103,11 @@ main(int argc, char * argv[])
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)