Leopold Toetsch wrote:
Hallo,
Gernot Zander
wrote in message news:84l2iu$oko$1@scorpio.in-berlin.de... Hi,
in de.alt.comm.isdn4linux Gernot Zander
wrote: einen Millenniumsbug habe ich: Jan 01 00:34:17 tei 91 ? to ? Time:INVALID - ignored ^^^^^^^^^^^^^^^^^^^^^^^^^^
Patch dagegen: --- processor.c.ori Sun Aug 1 21:35:35 1999 +++ processor.c Sat Jan 1 15:17:55 2000 @@ -2268,6 +2268,8 @@ } else if ((element == 0x29) && (version != VERSION_1TR6)) { tm.tm_year = strtol(p += 3, NIL, 16); + if (tm.tm_year < 70) + tm.tm_year += 100; tm.tm_mon = strtol(p += 3, NIL, 16) - 1; tm.tm_mday = strtol(p += 3, NIL, 16); tm.tm_hour = strtol(p += 3, NIL, 16);
(Bei 1TR6 waren die zwei Zeilen drin, bei DSS1 fehlten sie.) Patch bezieht sich auf isdn4k-utils-3.0beta1 (ich weiß, alt), aber ich nehme an, bei anderen Versionen passt er auch.
mfg. Gernot
Danke Gernot, super. Zusaetzlich zu obigen 2 Zeilen braucht isdnlog noch folgendes:
--- tools/tools.c.orig Fri Dec 31 14:57:20 1999 +++ tools/tools.c Sat Jan 1 14:25:32 2000 @@ -480,7 +480,7 @@ p += 4; *p = 0;
- tm.tm_year = atoi(p1 + 2); + tm.tm_year = atoi(p1) - 1900;
#ifdef DEBUG_1 if (tm.tm_year < 1995) {
leo
--------------------------------------------------- To remove yourself from this mailing list send email to majordomo@listserv.isdn4linux.de containing "unsubscribe isdn4linux
" in the message body.