fix #37: match jail name to id correctly

This commit is contained in:
2025-04-06 15:16:50 +02:00
parent 5cd15ebff6
commit b5efc90d29

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
version=2.0.4 version=2.0.5
# this will be completed during build. Don't touch it, just execute # this will be completed during build. Don't touch it, just execute
# make and use the resulting script! # make and use the resulting script!
@@ -1532,7 +1532,7 @@ jaildk_login() {
fi fi
jid="" jid=""
jid=`jls | grep "$jail" | awk '{print $1}'` jid=$(jls -j "$jail" jid)
if test -z "$jid"; then if test -z "$jid"; then
echo "jail $jail doesn't run!" echo "jail $jail doesn't run!"