From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c4b2d38976946e0d,start X-Google-Attributes: gidf678f,public From: Allan Small Subject: Date/time patch for Digital UNIX Date: 1996/02/23 Message-ID: <312D390A.41C6@stl.dec.com>#1/1 X-Deja-AN: 140718885 content-type: text/plain; charset=us-ascii organization: Digital mime-version: 1.0 newsgroups: comp.unix.osf.misc x-mailer: Mozilla 2.0 (X11; I; OSF1 V3.0 alpha) Dear OSF managers, A number of timekeeping problems have recently been identified and fixed in Digital UNIX. Due to the urgency of these problems, the Sydney CSC has made the patch available on the internet. Without this patch the following behavior will be observed: 1) The 'date' command rejects February 29, 1996 (or any other leap year) as a valid date. 2) When the system time is changed with the 'date' to any date in March of a leap year and then rebooted, the system clock will lose one day. The first problem is the result of the libc routine strptime not recognising February 29th of a leap year as a valid date. The 'date' command makes use of strptime in the processing of the time. The problem is fixed in Digital Unix V3.2c and later and corrected by patch OSF300-234 for V3.0, OSF305-234 for V3.0b, OSF-320-214 for V3.2, and OSF3250-32191 for V3.2b. These are already available from the CSC, unfortunately, the README documentation does not point out the implication of this defect. The second problem is the result of an improper check for February of a leap year in the kernel routine resettodr which is found in the kernel module clock.c. The uncorrected routine will fail to add a days worth of seconds to the TOY clock during the month of March of a leap year when adjustment to the system time is made. USEG has prepared an interim fix for this problem. Corrections for V3.0, V3.0b, V3.2, V3.2b, V3.2c and V3.2d can be found in: ftp://gatekeeper.digital.com.au/incoming/clock_patches_update/ Regards Allan