From: Ted Lemon Date: Sun, 7 Nov 1999 20:28:23 +0000 (+0000) Subject: - Open the database file for appending before expiring pools, in case leases X-Git-Tag: BCTEL_SPECIAL_19991124~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96359f83fd83f24b3a0ae309666fd7522159d9cb;p=thirdparty%2Fdhcp.git - Open the database file for appending before expiring pools, in case leases need to be rewritten during the expirating process. --- diff --git a/server/db.c b/server/db.c index 261146c6f..d24b08297 100644 --- a/server/db.c +++ b/server/db.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.36 1999/10/28 13:02:24 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.37 1999/11/07 20:28:23 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -503,6 +503,7 @@ void db_startup (testp) read_leases (); if (!testp) { + db_file = fopen (path_dhcpd_db, "a"); expire_all_pools (); GET_TIME (&write_time); new_lease_file ();