From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXpKY-0001YD-OV for qemu-devel@nongnu.org; Wed, 19 Jul 2017 09:48:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXpKU-00084g-PM for qemu-devel@nongnu.org; Wed, 19 Jul 2017 09:47:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49850) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXpKU-00084U-JU for qemu-devel@nongnu.org; Wed, 19 Jul 2017 09:47:54 -0400 From: Markus Armbruster References: <1500448182-21376-1-git-send-email-armbru@redhat.com> <87h8y8iq4o.fsf@dusky.pond.sub.org> Date: Wed, 19 Jul 2017 15:47:48 +0200 In-Reply-To: <87h8y8iq4o.fsf@dusky.pond.sub.org> (Markus Armbruster's message of "Wed, 19 Jul 2017 14:10:31 +0200") Message-ID: <87shhsfshn.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] vnc: Clarify documentation of QMP command change List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: QEMU , Gerd Hoffmann Markus Armbruster writes: > Marc-Andr=C3=A9 Lureau writes: > >> Hi >> >> On Wed, Jul 19, 2017 at 9:09 AM, Markus Armbruster w= rote: >>> QMP command >>> >>> { "execute": "change", >>> "arguments": { "device": "vnc", "target": "password", "arg": PWD = } } >>> >>> behaves just like >>> >>> { "execute": "change-vnc-password", >>> "arguments": { "password", "arg": PWD } } This should be "arguments": { "password": PWD } } >>> Their documentation differs, however. According to >>> change-vnc-password's documentation, "an empty password [...] will set >>> the password to the empty string", while change's documentation claims >>> "no future logins will be allowed". The former is actually correct. >>> Replace the incorrect claim by a reference to change-vnc-password. >>> >>> Signed-off-by: Markus Armbruster >> >> Reviewed-by: Marc-Andr=C3=A9 Lureau >> >> >> The password would have to be NULL to disallow further login, is that >> what your other series will allow to do? > > I guess it could be applied to change-vnc-password that way. However, making @password optional would be even simpler. Absent @password =3D no password feels natural to me.