Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 1999 14:34:13 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
Cc:        imp@village.org, committers@FreeBSD.ORG, danny@hilink.com.au
Subject:   Re: Y2K compliance question
Message-ID:  <199901161934.OAA06258@khavrinen.lcs.mit.edu>
In-Reply-To: <99Jan16.085538est.40324@border.alcanet.com.au>
References:  <99Jan16.085538est.40324@border.alcanet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 16 Jan 1999 08:56:12 +1100, Peter Jeremy <peter.jeremy@auss2.alcatel.com.au> said:

>> : src/usr.bin/fetch/http.c
>> 
>> There appears to be a minor nit in parsing two digit dates.  It
>> appears to assume that they are in 1900..1999.
> IMHO, that code can get dates in the form "Monday, 27-Jan-1997 14:31:09"
> as well as 2 digit years.  If it actually gets a 4-digit year, it will
> confuse mktime().

If it should ever get a date in such a format, then the server is
seriously broken and whatever fetch does is irrelevant.

RFC 850 dates have a two-digit year, period.

(And mktime() doesn't get confused, it simply returns an error.)

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901161934.OAA06258>