From 5196e8f0df045be91e3fb77febf3ca7e5a263ae4 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 7 Jan 1999 00:01:26 +0000 Subject: Somewhat kludgy changes to make debugging mismatching CGI gid's easier to figure out. common.c now sports a global variable running_as_cgi which, when true causes fatal() to output some mildly more helpful HTML in addition to the syslog entry. Since this usually only occurs when the site admin is installing Mailman, this helpful HTML should give a better clue as to what's going wrong, rather than an unhelpful Web server message and syslog entry alone. Naturally, main() in cgi-wrapper.c sets running_as_cgi to 1; it is initialized to 0 so as to not upset mail-wrapper.c. Finally, because I think this is a kludge, I've wrapped this all in an #ifdef HELPFUL, and set Makefile.in to turn this on by default. My thought is that for some future version, if the site admin specifies --with-cgi-gid to configure, that proves they're somewhat clueful, and we'd default the HELPFUL macro to "off". --- src/cgi-wrapper.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cgi-wrapper.c') diff --git a/src/cgi-wrapper.c b/src/cgi-wrapper.c index fa9f02af5..841ef0730 100644 --- a/src/cgi-wrapper.c +++ b/src/cgi-wrapper.c @@ -39,6 +39,7 @@ main(int argc, char** argv, char** env) int status; char* fake_argv[3]; + running_as_cgi = 1; check_caller(logident, parentgid); /* if we get here, the caller is OK */ -- cgit v1.2.3-70-g09d2