From: Ted Lemon Date: Fri, 23 Apr 1999 22:30:56 +0000 (+0000) Subject: Print note at top of lease file so people won't ask about times being offset. X-Git-Tag: V3-ALPHA-19990423~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f65e88db9e92aa32073bf38c162e4cc6b9972ba;p=thirdparty%2Fdhcp.git Print note at top of lease file so people won't ask about times being offset. --- diff --git a/server/db.c b/server/db.c index a49d76df6..ed9b143fd 100644 --- a/server/db.c +++ b/server/db.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.22 1999/03/16 05:50:43 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.23 1999/04/23 22:30:56 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -274,6 +274,15 @@ void new_lease_file () log_fatal ("Can't fdopen new lease file!"); } + /* Write an introduction so people don't complain about time + being off. */ + fprintf (db_file, "# All times in this file are in UTC (GMT), not %s", + "your local timezone. This is\n"); + fprintf (db_file, "# not a bug, so please don't ask about it. %s", + "The format of this file is\n"); + fprintf (db_file, + "# documented in the dhcpd.leases(5) manual page.\n\n"); + /* Write out all the leases that we know of... */ counting = 0; write_leases ();