From: Ted Lemon Date: Tue, 5 Oct 1999 02:44:37 +0000 (+0000) Subject: Don't write out contents of root group when writing a host declaration. X-Git-Tag: BCTEL_SPECIAL_19991124~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dff4af5c087e1c316a5fc8c8ea74817195708a6e;p=thirdparty%2Fdhcp.git Don't write out contents of root group when writing a host declaration. --- diff --git a/server/db.c b/server/db.c index 1fb11db99..dcc07414f 100644 --- a/server/db.c +++ b/server/db.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.31 1999/10/04 23:19:36 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.32 1999/10/05 02:44:37 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -314,7 +314,8 @@ int write_host (host) if (host -> group && (!host -> named_group || - host -> group != host -> named_group -> group)) { + host -> group != host -> named_group -> group) && + host -> group != &root_group) { errno = 0; write_statements (db_file, host -> group -> statements, 8);