From: Ted Lemon Date: Fri, 4 May 2001 00:51:35 +0000 (+0000) Subject: Oops, don't go line-oriented when parsing client config. X-Git-Tag: V3-RC5~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe7fba89014db8a481ad9cf7ae0e0a892a6ba347;p=thirdparty%2Fdhcp.git Oops, don't go line-oriented when parsing client config. --- diff --git a/client/clparse.c b/client/clparse.c index e92310347..eb82b461d 100644 --- a/client/clparse.c +++ b/client/clparse.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: clparse.c,v 1.61 2001/05/02 06:27:11 mellon Exp $ Copyright (c) 1996-2001 The Internet Software Consortium. All rights reserved.\n"; +"$Id: clparse.c,v 1.62 2001/05/04 00:51:35 mellon Exp $ Copyright (c) 1996-2001 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -108,7 +108,7 @@ isc_result_t read_client_conf () if ((file = open (path_dhclient_conf, O_RDONLY)) >= 0) { cfile = (struct parse *)0; - new_parse (&cfile, file, (char *)0, 0, path_dhclient_conf, 1); + new_parse (&cfile, file, (char *)0, 0, path_dhclient_conf, 0); do { token = peek_token (&val, (unsigned *)0, cfile); @@ -130,7 +130,7 @@ isc_result_t read_client_conf () parse = (struct parse *)0; status = new_parse (&parse, -1, default_client_config, (sizeof default_client_config) - 1, - "default client configuration", 1); + "default client configuration", 0); if (status != ISC_R_SUCCESS) log_fatal ("can't begin default client config!"); @@ -191,7 +191,7 @@ void read_client_leases () if ((file = open (path_dhclient_db, O_RDONLY)) < 0) return; cfile = (struct parse *)0; - new_parse (&cfile, file, (char *)0, 0, path_dhclient_db, 1); + new_parse (&cfile, file, (char *)0, 0, path_dhclient_db, 0); do { token = next_token (&val, (unsigned *)0, cfile);