Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Nov 2014 00:37:39 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273999 - head/etc/rc.d
Message-ID:  <201411030037.sA30bdK0036259@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Mon Nov  3 00:37:39 2014
New Revision: 273999
URL: https://svnweb.freebsd.org/changeset/base/273999

Log:
  Do not try to create a /dev/log symlink in a jail.
  
  PR:	179828

Modified:
  head/etc/rc.d/syslogd

Modified: head/etc/rc.d/syslogd
==============================================================================
--- head/etc/rc.d/syslogd	Mon Nov  3 00:13:20 2014	(r273998)
+++ head/etc/rc.d/syslogd	Mon Nov  3 00:37:39 2014	(r273999)
@@ -28,7 +28,7 @@ syslogd_precmd()
 
 	#	Transitional symlink for old binaries
 	#
-	if [ ! -L /dev/log ]; then
+	if [ ! -L /dev/log ] && ! check_jail jailed; then
 		ln -sf /var/run/log /dev/log
 	fi
 	rm -f /var/run/log



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411030037.sA30bdK0036259>