Y2K-Bug in INN 1.x, 2.x
Bettina Fink
laura at krell.snafu.de
Wed Jan 5 07:24:57 UTC 2000
Per Hedeland <per at erix.ericsson.se> wrote:
> This patch, when applied to parsedate.y from INN-2.2 or
> later (where only the first chunk "fits", the other two are
> already effectively in place...) breaks (some) handling of
> dates with two-digit years - I guess 00 gets treated as 1900
> rather than 2000, which it does with the original parsedate.y:
>
> Jan 3 22:54:07 news rnews: rejected 437 Bad "Date" header --
> "3 Jan 00 21:48:34 GMT"
Can't reproduce that on my system, injected an article with
that date via rnews:
| Path: unlisys!news.snafu.de!not-for-mail
| Date: 3 Jan 00 21:48:34 GMT
| From: laura at hydrophil.de
| Newsgroups: de.test
| Subject: irgendwas (ignore)
| Message-ID: <20001205$1 at test.unlisys.net>
| Lines: 1
I have a lot of article coming in via rnews on my server, but
all rejects I see are "100" and "2xxx" (future).
When writing the patch, we did some testing (POST):
00 = Ok
23 = Article posted in the future
55 = Can't parse "Date" header
71 = Too old
99 = Ok
100 = Can't parse "Date" header
1900 = Can't parse "Date" header
1969 = Can't parse "Date" header
1970 = Too old
2000 = Ok
2100 = Can't parse "Date" header
So that looks ok to me ...
Bye,
Bettina
More information about the inn-workers
mailing list