NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/31504
The following reply was made to PR misc/31504; it has been noted by GNATS.
From: "matthew sporleder" <msporleder%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: misc/31504
Date: Sun, 20 Jan 2008 23:59:15 -0500
On 1/20/08, matthew sporleder <msporleder%gmail.com@localhost> wrote:
> Here's an attempt at a fix for /etc/rc.d/named
>
> --- named.orig 2008-01-20 23:25:26.000000000 +0000
> +++ named 2008-01-20 23:48:38.000000000 +0000
> @@ -25,7 +25,7 @@
> echo "Migrating $src to $dst"
> (
> diff=false
> - cd $src
> + cd $src &&
> for f in $(find . -type f)
> do
> f=${f##./}
> @@ -96,7 +96,7 @@
> fi
> done
>
> - if [ ! -h /etc/namedb ]; then
> + if [ \( ! -h /etc/namedb \) -a \( -r /etc/namedb \) ]; then
> named_migrate /etc/namedb ${named_chrootdir}
> fi
> if [ \( -r /etc/named.conf \) -a \( ! -h /etc/named.conf \) -a \
>
Oops.. that should be a -d test, not -r:
--- named.orig 2008-01-20 23:25:26.000000000 +0000
+++ named 2008-01-20 23:55:36.000000000 +0000
@@ -25,7 +25,7 @@
echo "Migrating $src to $dst"
(
diff=false
- cd $src
+ cd $src &&
for f in $(find . -type f)
do
f=${f##./}
@@ -96,7 +96,7 @@
fi
done
- if [ ! -h /etc/namedb ]; then
+ if [ \( ! -h /etc/namedb \) -a \( -d /etc/namedb \) ]; then
named_migrate /etc/namedb ${named_chrootdir}
fi
if [ \( -r /etc/named.conf \) -a \( ! -h /etc/named.conf \) -a \
Home |
Main Index |
Thread Index |
Old Index