[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/9] vnc-stubs: Allow -vnc none
From: |
Gerd Hoffmann |
Subject: |
[PULL 6/9] vnc-stubs: Allow -vnc none |
Date: |
Wed, 14 Oct 2020 10:21:46 +0200 |
From: Jason Andryuk <jandryuk@gmail.com>
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>
---
ui/vnc-stubs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ui/vnc-stubs.c b/ui/vnc-stubs.c
index 06c4ac6296eb..c6b737dcec67 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;
}
--
2.27.0
- [PULL 0/9] Ui 20201014 patches, Gerd Hoffmann, 2020/10/14
- [PULL 8/9] input-linux: Reset il->fd handler before closing it, Gerd Hoffmann, 2020/10/14
- [PULL 4/9] win32: Simplify gmtime_r detection not depends on if _POSIX_C_SOURCE are defined on msys2/mingw, Gerd Hoffmann, 2020/10/14
- [PULL 2/9] curses: Fixes compiler error that complain don't have langinfo.h on msys2/mingw, Gerd Hoffmann, 2020/10/14
- [PULL 7/9] SDL: enable OpenGL context creation, Gerd Hoffmann, 2020/10/14