]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Print note at top of lease file so people won't ask about times being offset.
authorTed Lemon <source@isc.org>
Fri, 23 Apr 1999 22:30:56 +0000 (22:30 +0000)
committerTed Lemon <source@isc.org>
Fri, 23 Apr 1999 22:30:56 +0000 (22:30 +0000)
server/db.c

index a49d76df6c9a7094d4db220d73c34013d81da049..ed9b143fd55f8acd5c8d634932ec775788e079c3 100644 (file)
@@ -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 ();