diff options
author | flz <flz@FreeBSD.org> | 2007-01-02 11:07:13 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2007-01-02 11:07:13 +0000 |
commit | d7f57382df29ac42bb9b671d05a5741c3c1c2b19 (patch) | |
tree | b1dfbb2d690036fa4d1636887d664f00b648eecc /etc/rc.d/jail | |
parent | 28b93922d1ccede88c91de56dc0a9143adf12072 (diff) | |
download | FreeBSD-src-d7f57382df29ac42bb9b671d05a5741c3c1c2b19.zip FreeBSD-src-d7f57382df29ac42bb9b671d05a5741c3c1c2b19.tar.gz |
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 <cryx-freebsd@h3q.com>
Diffstat (limited to 'etc/rc.d/jail')
-rw-r--r-- | etc/rc.d/jail | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 2e01fd8..9c6af4f 100644 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -262,8 +262,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} |