From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: ioemu: empty vnc passwd Date: Wed, 23 Jan 2008 16:11:30 +0000 Message-ID: <20080123161130.GD5188@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello, There is a small bug in xenstore.c: the following patch is needed because else xenstore_read_vncpasswd would return 0 even when it is unable to read the passwd. diff -r 9e92672385a5 tools/ioemu/xenstore.c --- a/tools/ioemu/xenstore.c Wed Jan 23 13:37:03 2008 +0000 +++ b/tools/ioemu/xenstore.c Wed Jan 23 15:53:01 2008 +0000 @@ -518,7 +518,7 @@ int xenstore_read_vncpasswd(int domid, c pwbuf[0] = '\0'; free(uuid); free(path); - return rc; + return -1; } for (i=0; i