From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 27 16:40:19 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2A7216A4CE for ; Sat, 27 Dec 2003 16:40:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19CB143D2F for ; Sat, 27 Dec 2003 16:40:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBS0eGFR005227 for ; Sat, 27 Dec 2003 16:40:16 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBS0eGH9005226; Sat, 27 Dec 2003 16:40:16 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 27 Dec 2003 16:40:16 -0800 (PST) Resent-Message-Id: <200312280040.hBS0eGH9005226@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paulius Bulotas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C1C316A4CE for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/60642: dhclient has mysterious option -D X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Paulius Bulotas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2003 00:40:19 -0000 >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 ] %s", + log_error ("Usage: dhclient [-1dqr] [-nw] [-p ] %s", "[-s server]"); log_error (" [-cf config-file] [-lf lease-file]%s", "[-pf pid-file] [-e VAR=val]"); >Release-Note: >Audit-Trail: >Unformatted: