summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2012-01-20 22:55:19 +0000
committerbrooks <brooks@FreeBSD.org>2012-01-20 22:55:19 +0000
commitf4486342626aa8de7a43e56224652fdc48ac6d2e (patch)
tree8818f3d165364f567d25c2413ebcd1805906bd38 /etc/rc.d
parent22e70588b6cdf56fe27ba4df83622ab942d53cf0 (diff)
downloadFreeBSD-src-f4486342626aa8de7a43e56224652fdc48ac6d2e.zip
FreeBSD-src-f4486342626aa8de7a43e56224652fdc48ac6d2e.tar.gz
When creating the jails /dev/log symlink, do it by full path to avoid
creating stray "log" symlinks if the mount fails. That apparently happens in some ezjail configs. PR: conf/143084 Submitted by: Dirk Engling <erdgeist at erdgeist.org> Reviewed by: simon MFC after: 2 weeks
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/jail5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail
index 54cdee2..72ab62e 100755
--- a/etc/rc.d/jail
+++ b/etc/rc.d/jail
@@ -601,10 +601,7 @@ jail_start()
devfs_mount_jail "${_devdir}" ${_ruleset}
# Transitional symlink for old binaries
if [ ! -L "${_devdir}/log" ]; then
- __pwd="`pwd`"
- cd "${_devdir}"
- ln -sf ../var/run/log log
- cd "$__pwd"
+ ln -sf ../var/run/log "${_devdir}/log"
fi
fi
OpenPOWER on IntegriCloud