git: c6a4b634d7d4 - 2023Q2 - ports-mgmt/rc-subr-jail: Fix bug with kill_jail.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Apr 2023 18:21:46 UTC
The branch 2023Q2 has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c6a4b634d7d4457572f9b5fcd9a866dfb2fb43d1
commit c6a4b634d7d4457572f9b5fcd9a866dfb2fb43d1
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:21:43 +0000
ports-mgmt/rc-subr-jail: Fix bug with kill_jail.
Reported by: Boris Polujin <boris@zfs.ninja>
(cherry picked from commit 2b7a2e498012740b3bca082f13b0fec981b3e02a)
---
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
}