bin/60642: dhclient has mysterious option -D

Paulius Bulotas paulius at
Sat Dec 27 16:40:19 PST 2003

>Number:         60642
>Category:       bin
>Synopsis:       dhclient has mysterious option -D
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 27 16:40:16 PST 2003
>Originator:     Paulius Bulotas
>Release:        FreeBSD 4.9-RELEASE i386
System: FreeBSD 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Sun Dec 7 16:38:54 EET 2003 root@:/usr/src/sys/compile/NONAME i386

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.
check appropriate revisions or just dhclient -D
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
-.B -D
-flag causes
-.B dhclient
-to save the script it creates for use in conjunction with
-.B dhclient-script
-.IR /tmp.
 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]");

More information about the freebsd-bugs mailing list