Rick Widmer wrote:
It might be a good idea to report the error to stderr. (Which I belive will show up in the Apache error_log.)
I can confirm stderr goes to the Apache error log. The following changes makes stderr available in acterr. I am finding it quite handy for debugging. It seems some things that are sent to actout never appear on the browser. No promises finding the show_forwards crash though, I don't do much c.
I can tell you that if you comment out the call to show_dotqmail_lines in the ##d case of template.c the program does not crash. Of course it does not attempt to print the list of forwards, but it does paint the rest of the page properly.
Rick
=================================================================== RCS file: /cvsroot/qmailadmin/qmailadmin/qmailadmin.c,v retrieving revision 1.5 diff -u -r1.5 qmailadmin.c --- qmailadmin.c 8 Dec 2003 18:55:09 -0000 1.5 +++ qmailadmin.c 26 Dec 2003 09:47:41 -0000 @@ -62,6 +62,7 @@ char TempBuf[MAX_BUFF]; int Compressed; FILE *actout; +FILE *acterr; FILE *lang_fs; FILE *color_table;
@@ -300,6 +301,7 @@
CGIValues['f'] = 15; actout = stdout;
+ acterr = stderr;
memset(Username, 0, sizeof(Username));
memset(Domain, 0, sizeof(Domain));
memset(Password, 0, sizeof(Password));=================================================================== RCS file: /cvsroot/qmailadmin/qmailadmin/qmailadminx.h,v retrieving revision 1.2 diff -u -r1.2 qmailadminx.h --- qmailadminx.h 10 Dec 2003 06:00:48 -0000 1.2 +++ qmailadminx.h 26 Dec 2003 09:51:55 -0000 @@ -47,6 +47,7 @@ extern char TempBuf[MAX_BUFF]; extern int Compressed; extern FILE *actout; +extern FILE *acterr;
extern struct vlimits Limits; extern int num_of_mailinglist;
===================================================================
