Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2012 16:44:33 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243757 - stable/9/etc/rc.d
Message-ID:  <201212011644.qB1GiX19049809@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sat Dec  1 16:44:33 2012
New Revision: 243757
URL: http://svnweb.freebsd.org/changeset/base/243757

Log:
  MFC r243080:
  	Only pass ip[46].addr when _addrl contains a value
  
  Approved by:	cperciva (implicit)

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

Modified: stable/9/etc/rc.d/jail
==============================================================================
--- stable/9/etc/rc.d/jail	Sat Dec  1 15:54:54 2012	(r243756)
+++ stable/9/etc/rc.d/jail	Sat Dec  1 16:44:33 2012	(r243757)
@@ -656,7 +656,8 @@ jail_start()
 		done
 
 		eval ${_setfib} jail -n ${_jail} ${_flags} -i -c path=${_rootdir} host.hostname=${_hostname} \
-			ip4.addr=\"${_addrl}\" ip6.addr=\"${_addr6l}\" ${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1 \
+			${_addrl:+ip4.addr=\"${_addrl}\"} ${_addr6l:+ip6.addr=\"${_addr6l}\"} \
+			${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1 \
 			</dev/null
 
 		if [ "$?" -eq 0 ] ; then



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