提交 52c18be9 编写于 作者: Z Zachary Amsden 提交者: Anthony Liguori

When using stdio monitor and VNC display, one can set or clear a VNC password;...

When using stdio monitor and VNC display, one can set or clear a VNC password; this should set or turn off VNC authentication as well.
Signed-off-by: NZachary Amsden <zamsden@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 7ef92331
......@@ -2274,6 +2274,11 @@ int vnc_display_password(DisplayState *ds, const char *password)
if (password && password[0]) {
if (!(vs->password = qemu_strdup(password)))
return -1;
if (vs->auth == VNC_AUTH_NONE) {
vs->auth = VNC_AUTH_VNC;
}
} else {
vs->auth = VNC_AUTH_NONE;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册