CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2010/06/09 09:47:14

Modified files:
        sys/dev/ic     : mk48txx.c 

Log message:
Do not set time 100 years in the future if the time read is before
POSIX_BASE_YEAR (1970) because the clock's base year is before that year as
well (as found on sparc which use 1968 as their base year); this allows
clocks with dead batteries to ``correctly'' report the current date as in year
1968, instead of year 2068 which causes a 32 bit time_t wraparound in year
1931.

Found the hard way by Philippe Meunier, ok deraadt@

Reply via email to