Port-i386 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Workaround for invalid firmware-date values
In article <B6F90350-748A-43DB-9B54-A2E359C55844%invisible.ca@localhost>,
Jared D. McNeill <jmcneill%invisible.ca@localhost> wrote:
>Actually, a more desirable fix would be in x86 platform.c, since that's
>where the 1900 comes from to begin with:
>
>RCS file: /cvsroot/src/sys/arch/x86/x86/platform.c,v
>retrieving revision 1.9
>diff -u -r1.9 platform.c
>--- platform.c 6 Sep 2010 15:54:27 -0000 1.9
>+++ platform.c 17 Jan 2011 21:45:18 -0000
>@@ -165,7 +165,9 @@
> return;
> if (month == 0 || month > 12 || day == 0 || day > 31)
> return;
>- if (year < 100)
>+ if (year < 90)
>+ year += 2000;
>+ else if (year < 100)
> year += 1900;
> if (year > 9999)
> return;
>
Don't you want < 70 (the epoch?) what is 90?
christos
Home |
Main Index |
Thread Index |
Old Index