summaryrefslogtreecommitdiff
path: root/net/isc-dhcp30-server
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-03-23 11:18:44 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-03-23 11:18:44 +0000
commit988ec7593332f41392c70c78055d4ea4ee65fda7 (patch)
tree120d9a30678a8e9f96426b13f2d2ea3fc21b7d59 /net/isc-dhcp30-server
parentUpgreate the Half-life server to the latest-and-greatest. (diff)
Additiona patch sent by MAINTAINER and forgot by me.
Submitted by: Cyrille Lefevre <root@gits.dyndns.org>
Notes
Notes: svn path=/head/; revision=40260
Diffstat (limited to 'net/isc-dhcp30-server')
-rw-r--r--net/isc-dhcp30-server/files/patch-dhclient.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/isc-dhcp30-server/files/patch-dhclient.c b/net/isc-dhcp30-server/files/patch-dhclient.c
index b1f5599304aa..208c0dc23613 100644
--- a/net/isc-dhcp30-server/files/patch-dhclient.c
+++ b/net/isc-dhcp30-server/files/patch-dhclient.c
@@ -1,5 +1,5 @@
--- client/dhclient.c.orig Fri Mar 16 00:12:03 2001
-+++ client/dhclient.c Thu Mar 22 02:49:59 2001
++++ client/dhclient.c Thu Mar 22 14:57:19 2001
@@ -78,6 +78,7 @@
u_int16_t remote_port;
int no_daemon;
@@ -56,13 +56,16 @@
}
isc_result_t find_class (struct class **c,
-@@ -1453,6 +1467,10 @@
+@@ -1453,6 +1467,13 @@
/* No leases were available, or what was available didn't work, so
tell the shell script that we failed to allocate an address,
and try again later. */
+ if (onetry) {
++ if (!quiet)
++ log_info ("Unable to obtain a lease on first try - %s.",
++
++ "exiting");
+ exit(2);
-+ log_info ("Unable to obtain a lease on first try - exiting.\n");
+ }
log_info ("No working leases in persistent database - sleeping.");
script_init (client, "FAIL", (struct string_list *)0);