660a1bbf32
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.
33 lines
1 KiB
Text
33 lines
1 KiB
Text
$NetBSD: patch-aq,v 1.3 2005/08/17 11:43:27 tv Exp $
|
|
|
|
--- src/toss/history.c.orig 2004-08-22 16:19:14.000000000 -0400
|
|
+++ src/toss/history.c
|
|
@@ -151,8 +151,8 @@ static int hi_write_t(time_t t, time_t m
|
|
}
|
|
|
|
/* Write MSGID line to history text file */
|
|
- debug(7, "history: offset=%ld: %s %ld", offset, msgid, t);
|
|
- ret = fprintf(hi_file, "%s\t%ld\n", msgid, t);
|
|
+ debug(7, "history: offset=%ld: %s %ld", offset, msgid, (long)t);
|
|
+ ret = fprintf(hi_file, "%s\t%ld\n", msgid, (long)t);
|
|
if (ret == ERROR || fflush(hi_file) == ERROR)
|
|
{
|
|
logit("$ERROR: write to MSGID history failed");
|
|
@@ -280,7 +280,7 @@ int main(int argc, char *argv[])
|
|
{
|
|
if(t)
|
|
{
|
|
- debug(2, "new: %s (time=%ld)", m, t);
|
|
+ debug(2, "new: %s (time=%ld)", m, (long)t);
|
|
hi_write_t(t, 0, m);
|
|
}
|
|
else
|
|
@@ -305,7 +305,7 @@ int main(int argc, char *argv[])
|
|
{
|
|
if(t)
|
|
{
|
|
- debug(2, "new: %s (time=%ld)", m, t);
|
|
+ debug(2, "new: %s (time=%ld)", m, (long)t);
|
|
hi_write_t(t, 0, m);
|
|
}
|
|
else
|