Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2023 18:12:36 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2b7a2e498012 - main - ports-mgmt/rc-subr-jail: Fix bug with kill_jail.
Message-ID:  <202304081812.338ICab3069017@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b7a2e498012740b3bca082f13b0fec981b3e02a

commit 2b7a2e498012740b3bca082f13b0fec981b3e02a
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-04-08 15:42:12 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-04-08 18:12:31 +0000

    ports-mgmt/rc-subr-jail: Fix bug with kill_jail.
    
    Reported by:    Boris Polujin <boris@zfs.ninja>
---
 ports-mgmt/rc-subr-jail/Makefile           | 2 +-
 ports-mgmt/rc-subr-jail/files/rc.subr.jail | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ports-mgmt/rc-subr-jail/Makefile b/ports-mgmt/rc-subr-jail/Makefile
index 0bf5f97d5600..e31716915639 100644
--- a/ports-mgmt/rc-subr-jail/Makefile
+++ b/ports-mgmt/rc-subr-jail/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	rc-subr-jail
-PORTVERSION=	4
+PORTVERSION=	5
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	#
 DISTFILES=	#
diff --git a/ports-mgmt/rc-subr-jail/files/rc.subr.jail b/ports-mgmt/rc-subr-jail/files/rc.subr.jail
index e2c479b51df4..241fe78128cb 100644
--- a/ports-mgmt/rc-subr-jail/files/rc.subr.jail
+++ b/ports-mgmt/rc-subr-jail/files/rc.subr.jail
@@ -139,8 +139,8 @@ kill_jail()
     _varname="$3"
 
     if checkyesno "$_varname"; then
-        killall -j ${name}_jail ${signal}
+        killall -j ${name}_jail ${_signal}
     else
-        kill ${signal} "$_pid"
+        kill ${_signal} "$_pid"
     fi
 }



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