]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't write out contents of root group when writing a host declaration.
authorTed Lemon <source@isc.org>
Tue, 5 Oct 1999 02:44:37 +0000 (02:44 +0000)
committerTed Lemon <source@isc.org>
Tue, 5 Oct 1999 02:44:37 +0000 (02:44 +0000)
server/db.c

index 1fb11db995e8dce7785f71056641481938a25827..dcc07414fd10a5d3327414d20b76ebc64999b730 100644 (file)
@@ -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);