From paulius@noname.csdl.lt  Sat Dec 27 16:30:42 2003
Return-Path: <paulius@noname.csdl.lt>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8C1C316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Dec 2003 16:30:42 -0800 (PST)
Received: from noname.csdl.lt (noname.csdl.lt [194.176.40.182])
	by mx1.FreeBSD.org (Postfix) with SMTP id BDE1D43D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Dec 2003 16:30:40 -0800 (PST)
	(envelope-from paulius@noname.csdl.lt)
Received: (qmail 44842 invoked by uid 1000); 28 Dec 2003 00:30:38 -0000
Message-Id: <20031228003038.44841.qmail@noname.csdl.lt>
Date: 28 Dec 2003 00:30:38 -0000
From: Paulius Bulotas <paulius@kaktusas.org>
Reply-To: Paulius Bulotas <paulius@kaktusas.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dhclient has mysterious option -D
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         60642
>Category:       bin
>Synopsis:       dhclient has mysterious option -D
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 27 16:40:16 PST 2003
>Closed-Date:    Wed Aug 31 02:15:14 GMT 2005
>Last-Modified:  Wed Aug 31 02:15:14 GMT 2005
>Originator:     Paulius Bulotas
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
System: FreeBSD noname.csdl.lt 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Sun Dec 7 16:38:54 EET 2003 root@:/usr/src/sys/compile/NONAME i386


	
>Description:
Although -D option is documented in man page (dhclient.8), in dhclient.c
(usage()), dhclient doesn't recognize it.
The core functionality of it was removed in dhclient.c revision 1.12,
The option was removed in dhclient.c revision 1.20.
The variable save_scripts was removed in dhclient.c revision 1.23.
>How-To-Repeat:
check appropriate revisions or just dhclient -D
>Fix:
The following patch removes -D option from man page and usage()

--- contrib/isc-dhcp/client/dhclient.8.orig	Sun Dec 28 02:22:47 2003
+++ contrib/isc-dhcp/client/dhclient.8	Sun Dec 28 02:23:28 2003
@@ -32,9 +32,6 @@
 .I port
 ]
 [
-.B -D
-]
-[
 .B -d
 ]
 [
@@ -161,15 +158,6 @@
 only configure interfaces that are either specified in the
 configuration file or on the command line, and will ignore all other
 interfaces.
-.PP
-The
-.B -D
-flag causes
-.B dhclient
-to save the script it creates for use in conjunction with
-.B dhclient-script
-in 
-.IR /tmp.
 .PP
 If the DHCP client should listen and transmit on a port other than the
 standard (port 68), the
--- contrib/isc-dhcp/client/dhclient.c.orig	Sun Dec 28 02:23:39 2003
+++ contrib/isc-dhcp/client/dhclient.c	Sun Dec 28 02:24:11 2003
@@ -540,7 +540,7 @@
 	log_info (arr);
 	log_info (url);
 
-	log_error ("Usage: dhclient [-1Ddqr] [-nw] [-p <port>] %s",
+	log_error ("Usage: dhclient [-1dqr] [-nw] [-p <port>] %s",
 		   "[-s server]");
 	log_error ("                [-cf config-file] [-lf lease-file]%s",
 		   "[-pf pid-file] [-e VAR=val]");
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: mbr 
Responsible-Changed-When: Thu May 13 00:52:27 PDT 2004 
Responsible-Changed-Why:  
I'll look at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60642 
State-Changed-From-To: open->closed 
State-Changed-By: rodrigc 
State-Changed-When: Wed Aug 31 02:14:16 GMT 2005 
State-Changed-Why:  
-D is not available in latest dhclient 


Responsible-Changed-From-To: mbr->brooks 
Responsible-Changed-By: rodrigc 
Responsible-Changed-When: Wed Aug 31 02:14:16 GMT 2005 
Responsible-Changed-Why:  
"-D" is not available in latest dhclient 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60642 
>Unformatted:
