NetBSD Problem Report #48529

From gson@gson.org  Fri Jan 17 11:48:48 2014
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 101AAA6482
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Jan 2014 11:48:48 +0000 (UTC)
Message-Id: <20140117114745.8056575E2D@guava.gson.org>
Date: Fri, 17 Jan 2014 13:47:45 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@gnats.NetBSD.org
Subject: dhcpcd creates directory /@RUNDIR@
X-Send-Pr-Version: 3.95

>Number:         48529
>Category:       bin
>Synopsis:       dhcpcd creates directory /@RUNDIR@
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 17 11:50:00 +0000 2014
>Closed-Date:    Fri Jan 17 21:03:15 +0000 2014
>Last-Modified:  Fri Jan 17 21:03:15 +0000 2014
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2014.01.13.10.49.47
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

On a freshly installed -current system, after starting dhcpcd, the
root directory contains subdirectory named @RUNDIR@ (literally,
including the at signs).

>How-To-Repeat:

Install -current.

As root, run

  dhcpcd
  ls /

>Fix:

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: roy@NetBSD.org
Subject: Re: bin/48529: dhcpcd creates directory /@RUNDIR@
Date: Fri, 17 Jan 2014 19:23:45 +0100

 Does this help?
 Is this the intended directory?

 Martin

 --8<--
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile,v
 retrieving revision 1.18
 diff -u -r1.18 Makefile
 --- Makefile	15 Jan 2014 20:58:53 -0000	1.18
 +++ Makefile	17 Jan 2014 18:22:37 -0000
 @@ -46,6 +46,7 @@
  	    -e 's:@LIBDIR@:/lib:g' \
  	    -e 's:@HOOKDIR@:/libexec/dhcpcd-hooks:g' \
  	    -e 's:@SCRIPT@:/libexec/dhcpcd-run-hooks:g' \
 +	    -e 's:@RUNDIR@:/var/run:g' \
  	    -e 's:@SERVICEEXISTS@::g' \
  	    -e 's:@SERVICECMD@::g' \
  	    -e 's:@SERVICESTATUS@::g' \

From: "Roy Marples" <roy@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48529 CVS commit: src/external/bsd/dhcpcd/sbin/dhcpcd
Date: Fri, 17 Jan 2014 18:36:26 +0000

 Module Name:	src
 Committed By:	roy
 Date:		Fri Jan 17 18:36:25 UTC 2014

 Modified Files:
 	src/external/bsd/dhcpcd/sbin/dhcpcd: Makefile

 Log Message:
 Specify correct run directory.
 Fixes PR bin/48529 thanks to martin@


 To generate a diff of this commit:
 cvs rdiff -u -r1.18 -r1.19 src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48529 CVS commit: src/usr.sbin/postinstall
Date: Fri, 17 Jan 2014 19:06:57 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Fri Jan 17 19:06:57 UTC 2014

 Modified Files:
 	src/usr.sbin/postinstall: postinstall

 Log Message:
 Add a check to remove the temporarily (eroneously) created /@RUNDIR@
 (PR bin/48529)


 To generate a diff of this commit:
 cvs rdiff -u -r1.161 -r1.162 src/usr.sbin/postinstall/postinstall

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Fri, 17 Jan 2014 21:03:15 +0000
State-Changed-Why:
Confirmed fixed.  Thanks to Martin and Roy for fixing it so quickly.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.