From 2dd3bcd48dba195a2bf5288c7db48a67064c3561 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 20 Jan 2012 22:55:19 +0000 Subject: [PATCH] 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 Reviewed by: simon MFC after: 2 weeks --- etc/rc.d/jail | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 54cdee28e1e..72ab62ee876 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