NetBSD-Bugs archive

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

PR/50574 CVS commit: src/lib/libutil



The following reply was made to PR bin/50574; it has been noted by GNATS.

From: "David A. Holland" <dholland%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/50574 CVS commit: src/lib/libutil
Date: Thu, 31 Dec 2015 10:52:06 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Thu Dec 31 10:52:06 UTC 2015
 
 Modified Files:
 	src/lib/libutil: parsedate.y
 
 Log Message:
 When computing relative months, use mktime() directly and don't call
 our Convert(). And check it for failure. This fixes three sets of
 problems:
 
   (1) depending on the passed-in value of Timezone it might
       disassemble the time in one timezone and reassemble it in
       another, causing mysterious offsets of a few hours;
 
   (2) with the previous set of changes to this file, Convert() fails
       if it ends up normalizing a date, so e.g. going three months
       forward from March 31 would fail;
 
   (3) previously if Convert() failed we passed -1 on to DSTcorrect(),
       which made a mess.
 
 PR 50574.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.26 -r1.27 src/lib/libutil/parsedate.y
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index