Date: 28 Dec 2003 00:30:38 -0000 From: Paulius Bulotas <paulius@kaktusas.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/60642: dhclient has mysterious option -D Message-ID: <20031228003038.44841.qmail@noname.csdl.lt> Resent-Message-ID: <200312280040.hBS0eGH9005226@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 60642 >Category: bin >Synopsis: dhclient has mysterious option -D >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 27 16:40:16 PST 2003 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031228003038.44841.qmail>