pkgsrc/comms/fidogate/patches/patch-al
tv 18558c8d87 Update fidogate to 4.4.9nb1. Extremely minor changes from 4.4.5, mainly
changes local to the author's system and changes in doc to note better
the newer home on SourceForge.

However, this does contain a quasi-security fix:  LOGFILE and
FIDOGATE_LOGFILE could have been used to alter files owned by user/group
"news".  This is fixed in 4.4.9nb1, and will also be fixed in 4.4.10 from
the author.
2004-08-23 15:18:02 +00:00

26 lines
761 B
Text

$NetBSD: patch-al,v 1.5 2004/08/23 15:18:02 tv Exp $
--- 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)
{
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 == '$')
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);
}