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

Re: potato install-items



Hi,

On 8 Apr 2000, David Huggins-Daines wrote:

> this little gem (arch/alpha/kernel/time.c, line 309):
> 
> 	if ((year += 1900) < 1970)
> 		year += 100;
> 
> But 'year' here is being read from NVRAM and is not a two-digit offset
> from 1900 except when the console type is set to VMS.  So, in your
> case, if you set the year to 2000 in the ARC console, the kernel will
> read 20 here, then dutifully add 100 to it and call mktime() with a
> year of 120, i.e. 2020.  Likewise with SRM - 2000 = 48 in console
> years.
> 
> You know, this could be construed as a Y2K bug.

These things were reported en masse in risks.digest. Some
systems even jumped to 19200. And last year there was an April 1
risks-digest presenting solutions for the y10k problem approaching. 

:-) 

Regards,

Kerstin

-- 

	kerstin.hoef-emden@uni-koeln.de				 


Reply to: