diff options
author | Jason Andryuk <jandryuk@gmail.com> | 2020-10-08 21:40:32 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-14 06:05:56 +0200 |
commit | db88404a4e0f1cc1d2f26ed8187690088ba38a2b (patch) | |
tree | 5c5e1b6d4b26d395cbf3f50c1a6cc026a42a7df7 /ui | |
parent | 5285e593c33d7893ed7489b71f0fae95baa19e0a (diff) | |
download | qemu-db88404a4e0f1cc1d2f26ed8187690088ba38a2b.zip qemu-db88404a4e0f1cc1d2f26ed8187690088ba38a2b.tar.gz qemu-db88404a4e0f1cc1d2f26ed8187690088ba38a2b.tar.bz2 |
vnc-stubs: Allow -vnc none
Currently `-vnc none` is fatal when built with `--disable-vnc`. Make
vnc_parse accept "none", so QEMU still run without using vnc.
Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Message-id: 20201009014032.3507-1-jandryuk@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc-stubs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/vnc-stubs.c b/ui/vnc-stubs.c index 06c4ac6..c6b737d 100644 --- a/ui/vnc-stubs.c +++ b/ui/vnc-stubs.c @@ -12,6 +12,9 @@ int vnc_display_pw_expire(const char *id, time_t expires) }; QemuOpts *vnc_parse(const char *str, Error **errp) { + if (strcmp(str, "none") == 0) { + return NULL; + } error_setg(errp, "VNC support is disabled"); return NULL; } |