From 4dfbf1f9e36c9358a0e3374ba4bb4decc4ddf457 Mon Sep 17 00:00:00 2001 From: flz Date: Tue, 2 Jan 2007 11:14:07 +0000 Subject: [PATCH] Jail_ip and jail_interface local variables were renamed to _ip and _interface in a previous commit to avoid namespace collisions, unfortunately I missed two of them. This leads to the ip alias being incorrectly removed in some cases when using the stop command. Reported by: Philipp Wuensche --- etc/rc.d/jail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/jail b/etc/rc.d/jail index f0b23b1a1646..dfbc34f3b89b 100644 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -228,8 +228,8 @@ jail_start() echo ${_jail_id} > /var/run/jail_${_jail}.id else jail_umount_fs - if [ -n "${jail_interface}" ]; then - ifconfig ${jail_interface} -alias ${jail_ip} + if [ -n "${_interface}" ]; then + ifconfig ${_interface} -alias ${_ip} fi echo " cannot start jail \"${_jail}\": " tail +2 ${_tmp_jail}