Update to 4.4.10, finally....
Changes of note (security fixes were already integrated in an earlier
4.4.9nbX release):
* src/gate/ftn2rfc.c (unpack): if * Origin is empty, don't use it
for the Organization header, use default from config.
* src/common/log.c (logit): renamed old log() to avoid conflict
with Standard-C math function.
* src/common/log.c (log_program): removed insecure code entirely,
thanks to Niels Heinen for pointing this out.
* src/gate/send-fidogate.sh: added optimized version using rfc2ftn
-f for INN 2.4, thanks to Viktor Kafke.
Optimized versions for INN 2.2 und INN 2.4 enabled by
OPTIMIZED=yes at the start of this script, default = commented =
off.
* scripts/maintenance/logsendmail2.pl: new version of logsendmail
utility.
* src/gate/rfc2ftn.c (receiver): "sysop" is always a valid name.
* src/gate/rfc2ftn.c (main): new option "SilentBounces" causes
EX_NOHOST, EX_NOUSER errors to return OK without any message.
Useful in the never ending fight against spam, when your gateway
is flooded with messages to unknown adresses, such as Fido.DE :-(
(snd_mail): check silent_bounces, if set return OK and log only.
2005-08-17 13:43:27 +02:00
|
|
|
$NetBSD: patch-al,v 1.6 2005/08/17 11:43:27 tv Exp $
|
2001-03-19 14:23:35 +01:00
|
|
|
|
Update to 4.4.10, finally....
Changes of note (security fixes were already integrated in an earlier
4.4.9nbX release):
* src/gate/ftn2rfc.c (unpack): if * Origin is empty, don't use it
for the Organization header, use default from config.
* src/common/log.c (logit): renamed old log() to avoid conflict
with Standard-C math function.
* src/common/log.c (log_program): removed insecure code entirely,
thanks to Niels Heinen for pointing this out.
* src/gate/send-fidogate.sh: added optimized version using rfc2ftn
-f for INN 2.4, thanks to Viktor Kafke.
Optimized versions for INN 2.2 und INN 2.4 enabled by
OPTIMIZED=yes at the start of this script, default = commented =
off.
* scripts/maintenance/logsendmail2.pl: new version of logsendmail
utility.
* src/gate/rfc2ftn.c (receiver): "sysop" is always a valid name.
* src/gate/rfc2ftn.c (main): new option "SilentBounces" causes
EX_NOHOST, EX_NOUSER errors to return OK without any message.
Useful in the never ending fight against spam, when your gateway
is flooded with messages to unknown adresses, such as Fido.DE :-(
(snd_mail): check silent_bounces, if set return OK and log only.
2005-08-17 13:43:27 +02:00
|
|
|
--- src/common/log.c.orig 2004-08-26 16:56:20.000000000 -0400
|
2004-08-23 17:18:02 +02:00
|
|
|
+++ src/common/log.c
|
Update to 4.4.10, finally....
Changes of note (security fixes were already integrated in an earlier
4.4.9nbX release):
* src/gate/ftn2rfc.c (unpack): if * Origin is empty, don't use it
for the Organization header, use default from config.
* src/common/log.c (logit): renamed old log() to avoid conflict
with Standard-C math function.
* src/common/log.c (log_program): removed insecure code entirely,
thanks to Niels Heinen for pointing this out.
* src/gate/send-fidogate.sh: added optimized version using rfc2ftn
-f for INN 2.4, thanks to Viktor Kafke.
Optimized versions for INN 2.2 und INN 2.4 enabled by
OPTIMIZED=yes at the start of this script, default = commented =
off.
* scripts/maintenance/logsendmail2.pl: new version of logsendmail
utility.
* src/gate/rfc2ftn.c (receiver): "sysop" is always a valid name.
* src/gate/rfc2ftn.c (main): new option "SilentBounces" causes
EX_NOHOST, EX_NOUSER errors to return OK without any message.
Useful in the never ending fight against spam, when your gateway
is flooded with messages to unknown adresses, such as Fido.DE :-(
(snd_mail): check silent_bounces, if set return OK and log only.
2005-08-17 13:43:27 +02:00
|
|
|
@@ -137,7 +137,7 @@ void logit(const char *fmt, ...)
|
2004-08-23 17:18:02 +02:00
|
|
|
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));
|