From brad@brad-x.com  Mon Sep 23 13:52:46 2002
Return-Path: <brad@brad-x.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 371CC37B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <brad@brad-x.com>
Reply-To: Brad Laue <brad@brad-x.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dhclient sends DHCPDECLINE if /etc/resolv.conf is schg
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43307
>Category:       bin
>Synopsis:       dhclient sends DHCPDECLINE if /etc/resolv.conf is schg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    murray
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 23 14:00:11 PDT 2002
>Closed-Date:    Mon Feb 10 01:53:57 PST 2003
>Last-Modified:  Mon Feb 10 01:53:57 PST 2003
>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:
Responsible-Changed-From-To: freebsd-bugs->murray 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sun Sep 29 09:55:12 PDT 2002 
Responsible-Changed-Why:  
Over to dhcp maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43307 

From: Brad Laue <brad@brad-x.com>
To: freebsd-gnats-submit@FreeBSD.org, brad@brad-x.com,
	jon@FreeBSD.org
Cc:  
Subject: Re: bin/43307: dhclient sends DHCPDECLINE if /etc/resolv.conf is
 schg
Date: Tue, 07 Jan 2003 20:17:08 -0500

 This bug is a duplicate of bin/38778.
 
 I will test the included patch in bin/38778 if it hasn't been tested 
 yet, and report on its usability for inclusion.
 
 -- 
 // -- http://www.BRAD-X.com/ -- //
 
State-Changed-From-To: open->closed 
State-Changed-By: mbr 
State-Changed-When: Mon Feb 10 01:53:08 PST 2003 
State-Changed-Why:  
Duplicate of bin/38778 

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