Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2001 07:20:05 -0800 (PST)
From:      Cyrille Lefevre <root@gits.dyndns.org>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/25977: Updated port: net/isc-dhcp3 (beta 2 patch level 22)
Message-ID:  <200103221520.f2MFK5166348@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/25977; it has been noted by GNATS.

From: Cyrille Lefevre <root@gits.dyndns.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/25977: Updated port: net/isc-dhcp3 (beta 2 patch level 22)
Date: Thu, 22 Mar 2001 15:56:07 +0100 (CET)

 long term typo in files/patch-dhclient.c. so, please, use this
 patch instead of the one in the PR. thanks to Ted Lemon for review.
 most of the patches will be commited in the next release (beta).
 
 Index: files/patch-dhclient.c
 ===================================================================
 RCS file: /home/ncvs/ports/net/isc-dhcp3/files/patch-dhclient.c,v
 retrieving revision 1.5
 diff -u -r1.5 patch-dhclient.c
 --- files/patch-dhclient.c	2001/03/08 20:06:36	1.5
 +++ files/patch-dhclient.c	2001/03/22 13:57:40
 @@ -1,5 +1,5 @@
 ---- client/dhclient.c.orig	Thu Feb 15 23:17:05 2001
 -+++ client/dhclient.c	Fri Mar  2 05:51:43 2001
 +--- client/dhclient.c.orig	Fri Mar 16 00:12:03 2001
 ++++ client/dhclient.c	Thu Mar 22 14:57:19 2001
  @@ -78,6 +78,7 @@
   u_int16_t remote_port;
   int no_daemon;
 @@ -45,7 +45,7 @@
   	log_info (url);
   
  -	log_error ("Usage: dhclient [-d] [-D] [-q] [-p <port>] %s",
 -+	log_error ("Usage: dhclient [-1] [-d] [-D] [-q] [-p <port>] %s",
 ++	log_error ("Usage: dhclient [-1dDqr] [-p <port>] %s",
   		   "[-s server]");
  -	log_fatal ("                [-lf lease-file] [-pf pid-file]%s",
  -		   "[-cf config-file] [interface] [-e VAR=val]");
 @@ -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);
 
 Cyrille.
 --
 home: mailto:clefevre@poboxes.com   UNIX is user-friendly; it's just particular
 work: mailto:Cyrille.Lefevre@edf.fr   about who it chooses to be friends with. 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103221520.f2MFK5166348>