NetBSD Problem Report #36697

From martin@duskware.de  Sat Jul 28 17:05:49 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id B1CFA63B874
	for <gnats-bugs@gnats.netbsd.org>; Sat, 28 Jul 2007 17:05:49 +0000 (UTC)
Message-Id: <20070727161043.1D66B63B93E@narn.NetBSD.org>
Date: Fri, 27 Jul 2007 16:10:43 +0000 (UTC)
From: ixel@gmx.de
Reply-To: ixel@gmx.de
To: netbsd-bugs-owner@NetBSD.org
Subject: unexpanded variable in dhcpd.leases(5)
X-Send-Pr-Version: www-1.0

>Number:         36697
>Category:       misc
>Synopsis:       unexpanded variable in dhcpd.leases(5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 17:10:00 +0000 2007
>Last-Modified:  Sun Jul 13 10:54:50 +0000 2014
>Originator:     Martin Bock
>Release:        3.1
>Organization:
>Environment:
NetBSD burgund.occidentis 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
At the beginning of dhcpd.leases(5):

...
To make the initial lease database, just create an empty file called
/var/db/dhcpd.leases. You can do this with:

            touch DBDIR/dhcpd.leases

In  order to prevent the lease database from growing without bound, 
...

Clears the DBDIR after touch is not expanded, probably /var/db is meant.
>How-To-Repeat:
$ man dhcpd.leases
>Fix:

>Release-Note:

>Audit-Trail:
From: jnemeth@victoria.tc.ca (John Nemeth)
To: gnats-bugs@NetBSD.org, misc-bug-people@NetBSD.org,
	netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: misc/36697: unexpanded variable in dhcpd.leases(5)
Date: Mon, 30 Jul 2007 20:42:59 -0700

 On Nov 13,  5:17am, ixel@gmx.de wrote:
 } >Description:
 } At the beginning of dhcpd.leases(5):
 } 
 } ...
 } To make the initial lease database, just create an empty file called
 } /var/db/dhcpd.leases. You can do this with:
 } 
 }             touch DBDIR/dhcpd.leases
 } 
 } In  order to prevent the lease database from growing without bound, 
 } ...
 } 
 } Clears the DBDIR after touch is not expanded, probably /var/db is meant.
 } >How-To-Repeat:
 } $ man dhcpd.leases

      dist/dhcp/server/Makefile.dist contains these lines to make the
 substitution:

 dhcpd.leases.cat5:      dhcpd.leases.man5
         nroff -man dhcpd.leases.man5 >dhcpd.leases.cat5

 dhcpd.leases.man5:      dhcpd.leases.5
         sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
                 -e "s#RUNDIR#$(VARRUN)#g" < dhcpd.leases.5 >dhcpd.leases.man5

 However usr.sbin/dhcp/server/Makefile doesn't do any kind of special
 handling of the manpages.  The question is how to do the above in the
 context of a BSD makefile?

 }-- End of excerpt from ixel@gmx.de

>Unformatted:



 The script in /usr/src/external/bsd/dhcp/dhcp2netbsd could handle the variable expansion.

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.