From owner-freebsd-bugs Mon Sep 23 14: 0:17 2002 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 EB5BC37B401 for ; Mon, 23 Sep 2002 14:00:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7033143E75 for ; Mon, 23 Sep 2002 14:00:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8NL0CCo017413 for ; Mon, 23 Sep 2002 14:00:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8NL0C3Z017412; Mon, 23 Sep 2002 14:00:12 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 371CC37B401 for ; Mon, 23 Sep 2002 13:52:46 -0700 (PDT) Received: from TMA-1.brad-x.com (static-b2-191.highspeed.eol.ca [64.56.236.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9040243E75 for ; Mon, 23 Sep 2002 13:52:45 -0700 (PDT) (envelope-from brad@brad-x.com) Received: by TMA-1.brad-x.com (Postfix, from userid 1000) id 2C87422104A; Mon, 23 Sep 2002 16:52:46 -0400 (EDT) Message-Id: <20020923205246.2C87422104A@TMA-1.brad-x.com> Date: Mon, 23 Sep 2002 16:52:46 -0400 (EDT) From: Brad Laue Reply-To: Brad Laue To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/43307: dhclient sends DHCPDECLINE if /etc/resolv.conf is schg Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43307 >Category: bin >Synopsis: dhclient sends DHCPDECLINE if /etc/resolv.conf is schg >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 23 14:00:11 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Brad Laue >Release: FreeBSD 4.6-STABLE i386 >Organization: brad-x.com >Environment: System: FreeBSD TMA-1.brad-x.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Aug 5 16:15:45 EDT 2002 root@TMA-1.brad-x.com:/usr/src/sys/compile/DISCOVERY-IPF i386 >Description: /sbin/dhclient-script returns an error code to the 'dhclient' program itself if it is not successful in executing its make_resolv_conf() function. This results in dhclient sending a DHCPDECLINE message to the DHCP server, and leaving the system in question with no usable IP address. This can occur in situations where root is not able to write to the resolv.conf file, such as a read-only filesystem or schg flags appended to the file itself. This will by filed with the vendor of dhclient itself, but a local fix would be a good idea in the interim. >How-To-Repeat: chflags schg /etc/resolv.conf ; dhclient >Fix: The make_resolv_conf() function must provide a non-fatal exit option when it cannot complete successfully. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message