vnc-stubs: Allow -vnc none
PATCH 1/1 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 <[email protected]>
--- ui/vnc-stubs.c | 3 +++ 1 file changed, 3 insertions(+)
ui/vnc-stubs.c +3 -0
@@ -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 ; }
Signature · 1 line
2.25.1
Quoted 4 lines · Jason Andryuk
Currently
-vnc noneis fatal when built with--disable-vnc. Makevnc_parseaccept "none", so QEMU still run without using vnc.Signed-off-by Jason Andryuk <[email protected]>
Makes sense. Added to UI queue.
thanks,
Gerd