Path: utzoo!mnetor!uunet!husc6!uwvax!umn-d-ub!umn-cs!bungia!com50!ems!datapg!sewilco From: sewilco@datapg.DataPg.MN.ORG (Scot E. Wilcoxon) Newsgroups: comp.sources.d Subject: Bug found in PD 'localtime' Message-ID: <755@datapg.DataPg.MN.ORG> Date: 13 Apr 88 21:50:33 GMT Reply-To: sewilco@DataPg.MN.ORG (Scot E. Wilcoxon) Organization: Data Progress Lines: 16 I found the bug which I earlier mentioned. I'll leave comp.sources.bugs for the author to post an official fix. My symptom was 'zic' creating small files with zeroes instead of data for zones with DST (ie, EST5 OK and EST5EDT bad). The problem turned out to be "min_year" and "max_year" were both 2038 A.D., caused by a bug in gmtime(3) where called by setboundaries() in zic. A note in 'timemk.c' says there is a bug in System VR2.0 and BSD4.3 localtime(3), so many people might notice it. I fixed it by hardwiring 1970 for min_year in setboundaries() via a #define. This machine is an AT&T 3B1, with CT-flavored System V. -- Scot E. Wilcoxon sewilco@DataPg.MN.ORG {amdahl|hpda}!bungia!datapg!sewilco Data Progress UNIX consulting +1 612-825-2607 uunet!datapg!sewilco