[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Patch for Y2K problem with defective newsreaders
The following may be a workable patch for newsreaders which use a
seven-digit date in their NEWGROUPS command. People who have problems
should try it and tell me whether it works.
--Cornelius.
--- nntpd.c.orig Mon Jan 3 02:03:09 2000
+++ nntpd.c Mon Jan 3 02:04:05 2000
@@ -778,7 +778,10 @@
l = NULL;
a = strtol( arg, &l, 10 );
b = a / 10000;
- if ( b < 100 ) {
+ if ( a > 999999 && a <= 9999999 ) {
+ /* newsreader with Y2K problem: date is in seven digits */
+ timearray.tm_year = b;
+ } else if ( b < 100 ) {
if ( b <= year )
timearray.tm_year = b + century*100 ;
else
--
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany email: phak004@xxxxxxxxxxxxxxxxxxxxxx SP4 */
/* "Science is the game we play with God to find out what His rules are." */
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list