From: Ted Lemon Date: Sun, 15 Mar 1998 20:53:12 +0000 (+0000) Subject: Add a comment to document the non-presence of a Y2K bug, since people are getting... X-Git-Tag: carrel-2~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edca2b1a0324f3caf4b271cf5b3df2ab1f5daeee;p=thirdparty%2Fdhcp.git Add a comment to document the non-presence of a Y2K bug, since people are getting paranoid about that. --- diff --git a/common/parse.c b/common/parse.c index ffc1d49d0..f4268171d 100644 --- a/common/parse.c +++ b/common/parse.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: parse.c,v 1.2 1997/05/09 08:08:53 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: parse.c,v 1.3 1998/03/15 20:53:12 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -515,6 +515,11 @@ TIME parse_date (cfile) skip_to_semi (cfile); return (TIME)0; } + + /* Note: the following is not a Y2K bug - it's a Y1.9K bug. Until + somebody invents a time machine, I think we can safely disregard + it. This actually works around a stupid Y2K bug that was present + in a very early beta release of dhcpd. */ tm.tm_year = atoi (val); if (tm.tm_year > 1900) tm.tm_year -= 1900;