mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-16 04:01:06 +01:00
fix #37: match jail name to id correctly
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
version=2.0.4
|
||||
version=2.0.5
|
||||
|
||||
# this will be completed during build. Don't touch it, just execute
|
||||
# make and use the resulting script!
|
||||
@@ -1532,7 +1532,7 @@ jaildk_login() {
|
||||
fi
|
||||
|
||||
jid=""
|
||||
jid=`jls | grep "$jail" | awk '{print $1}'`
|
||||
jid=$(jls -j "$jail" jid)
|
||||
|
||||
if test -z "$jid"; then
|
||||
echo "jail $jail doesn't run!"
|
||||
|
||||
Reference in New Issue
Block a user