From: Ted Lemon Date: Tue, 7 Oct 1997 19:59:31 +0000 (+0000) Subject: Put hostname in quotes X-Git-Tag: NetBSD_1_3_Alpha~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355f034ada966df35414d9c9d6694a3aa7a3be0d;p=thirdparty%2Fdhcp.git Put hostname in quotes --- diff --git a/server/db.c b/server/db.c index c3c0a2682..e77576764 100644 --- a/server/db.c +++ b/server/db.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.13 1997/06/10 05:49:15 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.14 1997/10/07 19:59:31 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -143,7 +143,7 @@ int write_lease (lease) } if (lease -> hostname) { errno = 0; - fprintf (db_file, "\n\thostname %s;", + fprintf (db_file, "\n\thostname \"%s\";", lease -> client_hostname); if (errno) { ++errors;