Subject: bin/26504: dhclient overwrites pidfile on failre
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 08/02/2004 01:01:04
>Number:         26504
>Category:       bin
>Synopsis:       dhclient overwrites pidfile on failre
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 01 16:08:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        NetBSD 2.0F
>Organization:
	itojun.org
>Environment:
System: NetBSD coconut.itojun.org 2.0F NetBSD 2.0F (COCONUT) #0: Wed Jun 30 14:19:44 JST 2004 itojun@coconut.itojun.org:/home/itojun/nnn/src/sys/arch/i386/compile/COCONUT i386
Architecture: i386
Machine: i386
>Description:
	dhclient overwrites pidfile on failre.  for instance,

	# dhclient wi0
	# dhclient wm0

	2nd invocation of dhclient fails with bind(2) error.  however, pidfile
	is overwritten by 2nd invocation, and we will not be able to return
	lease by dhclient -r, for instance.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: