diff options
author | Christoph Egger <Christoph.Egger@amd.com> | 2011-02-18 19:07:11 +0000 |
---|---|---|
committer | Christoph Egger <Christoph.Egger@amd.com> | 2011-02-18 19:07:11 +0000 |
commit | 0dba10b8e37f3f63ed9f5ed449d9e9e0c8c9f1aa (patch) | |
tree | 91950f87edba6d0f83ea5be7fe11f15f485d6e2e | |
parent | ce30570ae8b53d7625243ee41984c24cfbf5935c (diff) | |
download | xen-0dba10b8e37f3f63ed9f5ed449d9e9e0c8c9f1aa.tar.gz xen-0dba10b8e37f3f63ed9f5ed449d9e9e0c8c9f1aa.tar.bz2 xen-0dba10b8e37f3f63ed9f5ed449d9e9e0c8c9f1aa.zip |
libxl regression: don't require vncpasswd when password is empty string
Don't require an empty password when the guest config file
has the entry
vncpasswd=''
Instead, do not require a password at all in this case.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r-- | tools/libxl/libxl_dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index b660dbf21d..bc0bae7a96 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -74,7 +74,7 @@ static char ** libxl_build_device_model_args_old(libxl__gc *gc, } 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); |