From 63ada5a8c30a58f8b6ae3fe6262fbf221b205cb9 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 4 Jan 2020 14:55:48 -0400 Subject: [PATCH] Fix issue with names containing dashes --- CHANGELOG | 1 + gui/bastille_manager-lib.inc | 2 +- version | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0d4003b..943186c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ====================== Version Description +1.0.31......Fix issue with names containing dashes. 1.0.30......Ability to convert thin jail to thick jail. 1.0.29......Added Chinese (Simplified) translation, thanks to lijinbiao. 1.0.28......Improve fstab utility error handling. diff --git a/gui/bastille_manager-lib.inc b/gui/bastille_manager-lib.inc index 37d3126..672fbc6 100755 --- a/gui/bastille_manager-lib.inc +++ b/gui/bastille_manager-lib.inc @@ -167,7 +167,7 @@ function get_jail_infos() { // Set the JID on the running jails. $item = $r['jailname']; - $r['id'] = exec("/usr/sbin/jls | /usr/bin/grep {$item} | /usr/bin/awk '{print $1}'"); + $r['id'] = exec("/usr/sbin/jls | /usr/bin/awk '/{$item}\ /{print $1}'"); if (!$r['id']): $r['id'] = "-"; endif; diff --git a/version b/version index 475bda9..9495615 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0.30 +1.0.31