Properly handle case of empty domain name.

This commit is contained in:
Andrew 2016-02-19 18:19:59 +01:00
parent 561f588d1d
commit bc73cf1fe3

View File

@ -45,5 +45,8 @@ shift
if [ "$VMNAME" = "--dispvm" ] ; then if [ "$VMNAME" = "--dispvm" ] ; then
VMNAME='$dispvm' VMNAME='$dispvm'
elif [ "$VMNAME" = "" ] ; then
print_usage
exit 1
fi fi
exec /usr/lib/qubes/qrexec-client-vm "$VMNAME" qubes.VMShell "/usr/lib/qubes/qrun-in-vm" "$@" exec /usr/lib/qubes/qrexec-client-vm "$VMNAME" qubes.VMShell "/usr/lib/qubes/qrun-in-vm" "$@"