httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Buchholz <j...@execpc.com>
Subject Re: WWW Form Bug Report: "date error in cgi.log when using built in cgi wrapper" on BSDI (fwd)
Date Fri, 27 Dec 1996 18:57:13 GMT
Rob Hartill had previously stated:
> suEXEC related:
> not acked.
> 
> ----- Forwarded message from lcroteau@ls.barrhead.ab.ca -----
> 
> Symptoms:
> --
> The cgi.log entries have the wrong date by exactly 1 month.
> [10:42:29 27-11-96]: uid: (marston) gid: (mall) cookbook.pl   
> --

It was there in 1.2b2, at least.  Quick fix:

in suexec.c, in err_output(), change...

    fprintf (log, "[%.2d:%.2d:%.2d %.2d-%.2d-%.2d]: ", lt->tm_hour, lt->tm_min,
             lt->tm_sec, lt->tm_mday, lt->tm_mon, lt->tm_year);

to...

    fprintf (log, "[%.2d:%.2d:%.2d %.2d-%.2d-%.2d]: ", lt->tm_hour, lt->tm_min,
             lt->tm_sec, lt->tm_mday, lt->tm_mon + 1, lt->tm_year);

-- 
Jake Buchholz                                      http://www.execpc.com/~jake
Exec-PC Internet Systems Administrator                         jake@execpc.com

Mime
View raw message