All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: don't require vncpasswd when empty
@ 2011-02-11 10:08 Christoph Egger
  2011-02-11 16:45 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Egger @ 2011-02-11 10:08 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]


Hi!

Attached patch fixes a regression introduced in c/s 22866:ed9ef3b07d2a:

Don't require a NULL-byte password when the guest config file
has the entry
     vncpasswd=''

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl_vncpasswd.diff --]
[-- Type: text/x-diff, Size: 534 bytes --]

diff -r 12de39a2c580 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c	Thu Feb 10 15:18:51 2011 +0100
+++ b/tools/libxl/libxl_dm.c	Fri Feb 11 11:03:59 2011 +0100
@@ -74,7 +74,7 @@ static char ** libxl_build_device_model_
         } else {
             vncarg = "127.0.0.1:0";
         }
-        if (info->vncpasswd)
+        if (info->vncpasswd && (info->vncpasswd[0] != '\0'))
             vncarg = libxl__sprintf(gc, "%s,password", vncarg);
         flexarray_append(dm_args, "-vnc");
         flexarray_append(dm_args, vncarg);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-14 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 10:08 [PATCH] libxl: don't require vncpasswd when empty Christoph Egger
2011-02-11 16:45 ` Ian Jackson
2011-02-14 14:58   ` Christoph Egger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.