1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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
This commit is contained in:
Brooks Davis 2012-01-20 22:55:19 +00:00
parent f622fcd083
commit 2dd3bcd48d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230403

View File

@ -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