Port-i386 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Workaround for invalid firmware-date values
On Tue, Jan 18, 2011 at 01:56:46AM +0000, Christos Zoulas wrote:
> >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?
ACPI was first release in 1996 which means that e.g. 1985 wouldn't be
valid release date. From that point of view the value should be 96.
Kind regards
--
Matthias Scheler http://zhadum.org.uk/
Home |
Main Index |
Thread Index |
Old Index