2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00

Put hostname in quotes

This commit is contained in:
Ted Lemon
1997-10-07 19:59:31 +00:00
parent 7c1800082b
commit 355f034ada

View File

@@ -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;