Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Workaround for invalid firmware-date values



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;










Home | Main Index | Thread Index | Old Index