diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-31 17:45:07 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-31 17:45:07 -0200 |
commit | 6207b570cf9bc67fb0988ce91f5c79e6430c0acc (patch) | |
tree | 0ee07f18a40c274e565fd0094aa687ca7e10fa52 | |
parent | 028accfd58fc446cd6b9b8bcc4cbbab1bff7911e (diff) | |
download | kvmx-6207b570cf9bc67fb0988ce91f5c79e6430c0acc.tar.gz kvmx-6207b570cf9bc67fb0988ce91f5c79e6430c0acc.tar.bz2 |
Minor restricted shell fix
-rwxr-xr-x | kvmx | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |