aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-31 17:45:07 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-31 17:45:07 -0200
commit6207b570cf9bc67fb0988ce91f5c79e6430c0acc (patch)
tree0ee07f18a40c274e565fd0094aa687ca7e10fa52
parent028accfd58fc446cd6b9b8bcc4cbbab1bff7911e (diff)
downloadkvmx-6207b570cf9bc67fb0988ce91f5c79e6430c0acc.tar.gz
kvmx-6207b570cf9bc67fb0988ce91f5c79e6430c0acc.tar.bz2
Minor restricted shell fix
-rwxr-xr-xkvmx3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 1c30ad6..80fbcff 100755
--- a/kvmx
+++ b/kvmx
@@ -1661,6 +1661,9 @@ function kvmx_shell {
if ! echo $restricted_actions | grep -q ":${STDIN[0]}:"; then
echo "Running in restricted shell mode."
echo "Allowed commands are only `echo $restricted_actions | tr ':' ' '`"
+ else
+ # Process command
+ $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1}
fi
else
# Process command