]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Minor restricted shell fix
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 31 Dec 2017 19:45:07 +0000 (17:45 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 31 Dec 2017 19:45:07 +0000 (17:45 -0200)
kvmx

diff --git a/kvmx b/kvmx
index 1c30ad66b81689fc363cf40a848f59af2b31f1ff..80fbcffc17cf79f506f2205826ebcf10492c27a2 100755 (executable)
--- 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