summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-07-13 03:38:54 +0000
committermillert <millert@openbsd.org>1998-07-13 03:38:54 +0000
commit1b0bb4fe17366b3a6623360602ca895dd89e3c00 (patch)
tree8d8c7612ab508763e821e2f338bad5ec9c0e6dc1
parentlibsa/itecons.c (diff)
downloadwireguard-openbsd-1b0bb4fe17366b3a6623360602ca895dd89e3c00.tar.xz
wireguard-openbsd-1b0bb4fe17366b3a6623360602ca895dd89e3c00.zip
Create /var/named/dev/null if it is not there and we are running named chroot'd. It would be cleaner to simply do this at install time but this way people who are tracking sources get the correct behavior too.
-rw-r--r--etc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 1d2012f0291..0b1db975e61 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.80 1998/07/11 08:41:34 deraadt Exp $
+# $OpenBSD: rc,v 1.81 1998/07/13 03:38:54 millert Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -104,6 +104,9 @@ if [ "X${named_flags}" != X"NO" ]; then
named_flags="-u ${named_user} ${named_flags}"
fi
if [ "X${named_chroot}" != "X" ]; then
+ if [ ! -c "${named_chroot}/dev/null" ]; then
+ ( cd /dev ; pax -rw -pe null ${named_chroot}/dev )
+ fi
named_flags="-t ${named_chroot} ${named_flags}"
fi
echo 'starting named'; named $named_flags