Commit 86bda88b authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[master] dhclient now writes expiry time as an unsigned long to script env

    Merged rt43326.
parent 417b7b4a
......@@ -160,6 +160,13 @@ by Eric Young (eay@cryptsoft.com).
includes/site.h. This flag is undefined by default.
[ISC-Bugs #43927]
- On 64-bit platforms, dhclient now generates the correct value for the
script environment variable, "expiry", the lease expiry value exceeds
0x7FFFFFFF. Prior to this such values would produce negative values
for expiry in the script environment.
[ISC-Bugs #43326]
Changes since 4.3.0 (bug fixes)
- Tidy up several small tickets.
......@@ -884,7 +891,7 @@ by Eric Young (eay@cryptsoft.com).
Solaris 11, ethernet device files are located in "/dev/net". The configure
script has been modified to detect this situation and adjust the directory
used accordingly. Thanks to Jarkko Torppa for reporting this issue and
submitting a patch
submitting a patch
[ISC-Bugs #37954]
[ISC-Bugs #40752]
......@@ -953,7 +960,7 @@ by Eric Young (eay@cryptsoft.com).
- Correct handling of interface names during interface discovery. This
addresses an issue where interface names of 15 characters in length
could lead to crashes or interface recognition errors during startup
could lead to crashes or interface recognition errors during startup
of dhcpd, dhclient, and dhcrelay.
[ISC-Bugs #42226]
......@@ -990,7 +997,7 @@ by Eric Young (eay@cryptsoft.com).
- Clean up some memory references in the vendor-class construct.
[ISC-Bugs #42984]
- The configure script for use with libtool now catches a failure to
- The configure script for use with libtool now catches a failure to
execute autoreconf. Prior to this, autoreconf failures would go undetected
causing the legacy configure script to loop when run with --enable-libtool.
[ISC-Bugs #43546]
......@@ -999,7 +1006,7 @@ by Eric Young (eay@cryptsoft.com).
"Run out of memory." on the standard error and exists with status 1.
[ISC-Bugs #32744]
- The linux interface discovery code has been modified to use getifaddrs()
- The linux interface discovery code has been modified to use getifaddrs()
as is done for BSD and OS-X. Prior to this the code would only recognize
the first address on an interface and thereby omit vlans.
Thanks to Jiri Popelka at Redhat, Marius Tomaschewski at Suse, and Wei
......
......@@ -3,7 +3,7 @@
DHCP Client. */
/*
* Copyright (c) 2004-2016 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2004-2017 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
......@@ -186,7 +186,7 @@ usage(const char *sfmt, const char *sarg)
log_error(sfmt, sarg);
#endif
log_fatal("Usage: %s %s%s\n %s %s",
log_fatal("Usage: %s %s%s\n %s %s",
isc_file_basename(progname),
DHCLIENT_USAGE0,
DHCLIENT_USAGEC,
......@@ -4085,7 +4085,9 @@ void script_write_params (client, prefix, lease)
universes [i],
&es, client_option_envadd);
}
client_envadd (client, prefix, "expiry", "%d", (int)(lease -> expiry));
client_envadd (client, prefix, "expiry", "%lu",
(unsigned long)(lease -> expiry));
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment