From dfa298ce191eca79d222352f23a11cca0a518f67 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 19 Jan 2001 14:09:48 +0000 Subject: [PATCH] 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. --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index a61e59b..e9b97f4 100644 --- a/main.c +++ b/main.c @@ -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)