diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2012-01-20 22:55:19 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2012-01-20 22:55:19 +0000 |
commit | 2dd3bcd48dba195a2bf5288c7db48a67064c3561 (patch) | |
tree | 8818f3d165364f567d25c2413ebcd1805906bd38 /etc | |
parent | f622fcd08316cf8ed553f20917aa27b2c85e32ee (diff) | |
download | src-2dd3bcd48dba195a2bf5288c7db48a67064c3561.tar.gz src-2dd3bcd48dba195a2bf5288c7db48a67064c3561.zip |
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
Notes
Notes:
svn path=/head/; revision=230403
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/jail | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 54cdee28e1e3..72ab62ee876e 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 |