NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41273: missing '/' in /etc/rc.d/named in section named_migrate



>Number:         41273
>Category:       bin
>Synopsis:       missing '/' in /etc/rc.d/named in section named_migrate
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 24 08:10:00 +0000 2009
>Originator:     Martin Mersberger
>Release:        5.0_RC4/amd64
>Organization:
>Environment:
NetBSD 5.0_RC4 (XEN3_DOMU) #0: Wed Apr 15 00:23:26 UTC 2009  
builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-RC4/amd64/200904142015Z-obj/home/builds/ab/netbsd-5-0-RC4/src/sys/arch/amd64/compile/XEN3_DOMU
>Description:
Hi Folks,

I've just chrooted my named on a fresh install of RC4. After the 
named_migrate() has finished, the directory structure in the chroot was pretty 
much damaged. The reason seem to be, that the named_migrate does not handle sub 
directories in /etc/namedb correctly. (Line 34: d=$dst$(dirname $f)  makes a
/etc/namedb/XXX to /var/chroot/named/etc/namedbXXX
.. so a '/' is missing there'.

I'd recommend to write line 34 in /etc/rc.d/named as 
 d=$dst/$(dirname $f)

)

Btw - /etc/security complains now about /etc/namedb as it's now a link. 
Wouldn't it make sense to default to a chroot environment in 
/etc/defaults/rc.conf for named and define /etc/namedb as a link in 
/etc/security ?!


Thanks for your help!

regards
 Martin 


>How-To-Repeat:

create a directory structure in /etc/namedb (mkdir -p /etc/namedb/XX/YY)
remove an existing chroot structure and restart /etc/rc.d/named to trigger 
named_migrate()

Check the hierarchy in $CHROOT/etc/namedb
>Fix:
I'd recommend to write line 34 in /etc/rc.d/named as 
 d=$dst/$(dirname $f)



Home | Main Index | Thread Index | Old Index