svn commit: r231389 - stable/8/etc/rc.d

Brooks Davis brooks at FreeBSD.org
Fri Feb 10 15:54:40 UTC 2012


Author: brooks
Date: Fri Feb 10 15:54:39 2012
New Revision: 231389
URL: http://svn.freebsd.org/changeset/base/231389

Log:
  MFC r230403.
  
  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>

Modified:
  stable/8/etc/rc.d/jail
Directory Properties:
  stable/8/etc/   (props changed)

Modified: stable/8/etc/rc.d/jail
==============================================================================
--- stable/8/etc/rc.d/jail	Fri Feb 10 15:54:17 2012	(r231388)
+++ stable/8/etc/rc.d/jail	Fri Feb 10 15:54:39 2012	(r231389)
@@ -592,10 +592,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
 


More information about the svn-src-stable-8 mailing list