diff options
author | 2002-09-12 18:21:48 +0000 | |
---|---|---|
committer | 2002-09-12 18:21:48 +0000 | |
commit | 2a2db0fdbc37cc4b6f6f8889895f9dd57043f6a1 (patch) | |
tree | 6944893c5ae16514d289fb42a9f25e48918bcac4 | |
parent | Eliminate the need for /dev/null in the chroot jail by opening it (diff) | |
download | wireguard-openbsd-2a2db0fdbc37cc4b6f6f8889895f9dd57043f6a1.tar.xz wireguard-openbsd-2a2db0fdbc37cc4b6f6f8889895f9dd57043f6a1.zip |
We no longer need to install copies of /dev/null and /etc/localtime
in named's chroot jail. These things are now dealt with before
named chroots.
-rw-r--r-- | etc/rc | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.204 2002/09/06 21:30:22 deraadt Exp $ +# $OpenBSD: rc,v 1.205 2002/09/12 18:21:48 millert Exp $ # System startup script run by init on autoboot # or after single-user. @@ -203,13 +203,6 @@ 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 - if [ -f /etc/localtime -a -d "${named_chroot}/etc" ]; then - cmp -s /etc/localtime "${named_chroot}/etc/localtime" \ - || cp -p /etc/localtime "${named_chroot}/etc/localtime" - fi named_flags="-t ${named_chroot} ${named_flags}" fi echo 'starting named'; named $named_flags |