Skip to content

Commit 51aeab6

Browse files
committed
qvm-console-dispvm: drop wrong validation of trusted input
The previous code didn't allow "." in the VM name. Input is trusted, and besides invalid VM names will be rejected as nonexistent or unstartable.
1 parent def2249 commit 51aeab6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

qvm-tools/qvm-console-dispvm

-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ fi
3030

3131
QREXEC_REQUESTED_TARGET="$1"
3232

33-
[[ "$QREXEC_REQUESTED_TARGET" =~ ^[A-Za-z][A-Za-z0-9_-]*$ ]] || { printf 'Invalid qube name %q\n' "$QREXEC_REQUESTED_TARGET">&2; exit 1; }
34-
3533
if "$do_start"; then
3634
msg='cannot be started'
3735
qvm-start --skip-if-running -- "$QREXEC_REQUESTED_TARGET"

0 commit comments

Comments
 (0)