From owner-cvs-all Sat Jan 16 11:34:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA13886 for cvs-all-outgoing; Sat, 16 Jan 1999 11:34:37 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA13880 for ; Sat, 16 Jan 1999 11:34:35 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id OAA06258; Sat, 16 Jan 1999 14:34:13 -0500 (EST) (envelope-from wollman) Date: Sat, 16 Jan 1999 14:34:13 -0500 (EST) From: Garrett Wollman Message-Id: <199901161934.OAA06258@khavrinen.lcs.mit.edu> To: Peter Jeremy Cc: imp@village.org, committers@FreeBSD.ORG, danny@hilink.com.au Subject: Re: Y2K compliance question In-Reply-To: <99Jan16.085538est.40324@border.alcanet.com.au> References: <99Jan16.085538est.40324@border.alcanet.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk < 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