From d590bda49e45a895a257c51fb052029d81fb17ef Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 13 Jul 1998 03:38:54 +0000 Subject: [PATCH] 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. --- src/etc/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/etc/rc b/src/etc/rc index 1d2012f0..0b1db975 100644 --- a/src/etc/rc +++ b/src/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