2004-08-23 17:18:02 +02:00
|
|
|
$NetBSD: patch-al,v 1.5 2004/08/23 15:18:02 tv Exp $
|
2001-03-19 14:23:35 +01:00
|
|
|
|
2004-08-23 17:18:02 +02:00
|
|
|
--- src/common/log.c.orig 2003-02-16 10:38:56.000000000 -0500
|
|
|
|
+++ src/common/log.c
|
|
|
|
@@ -137,7 +137,7 @@ void log(const char *fmt, ...)
|
|
|
|
if(fp)
|
2001-03-19 14:23:35 +01:00
|
|
|
{
|
|
|
|
fprintf(fp, "%s %s ",
|
|
|
|
- date_buf(buf, sizeof(buf), DATE_LOG, (long *)0), logprog);
|
|
|
|
+ date_buf(buf, sizeof(buf), DATE_LOG, (time_t *)0), logprog);
|
|
|
|
vfprintf(fp, *fmt == '$' ? fmt + 1 : fmt, args);
|
|
|
|
if (*fmt == '$')
|
2004-08-23 17:18:02 +02:00
|
|
|
fprintf(fp, " (errno=%d: %s)", errno, strerror(errno));
|
|
|
|
@@ -276,12 +276,5 @@ void log_file(char *name)
|
|
|
|
*/
|
|
|
|
void log_program(char *name)
|
|
|
|
{
|
|
|
|
- char *p;
|
|
|
|
-
|
|
|
|
BUF_COPY(logprog, name);
|
|
|
|
-
|
|
|
|
- if( (p = getenv("LOGFILE")) )
|
|
|
|
- log_file(p);
|
|
|
|
- if( (p = getenv("FIDOGATE_LOGFILE")) )
|
|
|
|
- log_file(p);
|
|
|
|
}
|