diff options
author | Shawn Routhier <sar@isc.org> | 2010-09-13 22:06:37 +0000 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2010-09-13 22:06:37 +0000 |
commit | 6aaaf6a460725c9fb22f0f2cb782b70a9d9dfcc2 (patch) | |
tree | 28bbbb49198842add33bc86f21cec99b3372b198 /server/db.c | |
parent | 83d409ae5974c45941eb538314131e243a6d4fcc (diff) | |
download | isc-dhcp-6aaaf6a460725c9fb22f0f2cb782b70a9d9dfcc2.tar.gz |
Fixes to lease input and output.
[ISC-Bugs #20418] - Some systems don't support the "%s" argument to
strftime, paste together the same string using mktime instead.
[ISC-Bugs #19596] - When parsing iaid values accept printable
characters.
[ISC-Bugs #21585] - Always print time values in omshell as hex
instead of ascii if the values happen to be printable characters.
Diffstat (limited to 'server/db.c')
-rw-r--r-- | server/db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/db.c b/server/db.c index 0b7ccf9f..c30d0fbc 100644 --- a/server/db.c +++ b/server/db.c @@ -3,7 +3,7 @@ Persistent database management routines for DHCPD... */ /* - * Copyright (c) 2004-2009 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1995-2003 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any @@ -594,11 +594,11 @@ write_ia(const struct ia_xx *ia) { binding_state) < 0) { goto error_exit; } - if (fprintf(db_file, " preferred-life %u\n", + if (fprintf(db_file, " preferred-life %u;\n", (unsigned)iasubopt->prefer) < 0) { goto error_exit; } - if (fprintf(db_file, " max-life %u\n", + if (fprintf(db_file, " max-life %u;\n", (unsigned)iasubopt->valid) < 0) { goto error_exit; } |