aboutsummaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp3
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2001-03-23 19:18:44 +0800
committerjeh <jeh@FreeBSD.org>2001-03-23 19:18:44 +0800
commit75f9b8d0a8bdae8702a053aa148e7e80af9c00a3 (patch)
tree722e04a34f9cb9f0d4cefdefe414146bf778c975 /net/isc-dhcp3
parent04b6a4c9ce468e36d2f995ebdc1c5e7efc59ad52 (diff)
downloadfreebsd-ports-gnome-75f9b8d0a8bdae8702a053aa148e7e80af9c00a3.tar.gz
freebsd-ports-gnome-75f9b8d0a8bdae8702a053aa148e7e80af9c00a3.tar.zst
freebsd-ports-gnome-75f9b8d0a8bdae8702a053aa148e7e80af9c00a3.zip
Additiona patch sent by MAINTAINER and forgot by me.
Submitted by: Cyrille Lefevre <root@gits.dyndns.org>
Diffstat (limited to 'net/isc-dhcp3')
-rw-r--r--net/isc-dhcp3/files/patch-dhclient.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/isc-dhcp3/files/patch-dhclient.c b/net/isc-dhcp3/files/patch-dhclient.c
index b1f5599304aa..208c0dc23613 100644
--- a/net/isc-dhcp3/files/patch-dhclient.c
+++ b/net/isc-dhcp3/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);