]> xenbits.xensource.com Git - libvirt.git/commitdiff
libvirtd: diagnose invalid host UUID
authorJim Meyering <jim@meyering.net>
Tue, 25 May 2010 19:12:01 +0000 (21:12 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 25 May 2010 21:53:19 +0000 (15:53 -0600)
* daemon/libvirtd.c (remoteReadConfigFile): Diagnose an invalid
host UUID rather than silently exiting with status 7.

daemon/libvirtd.c

index 8fa78b838cd9d755c1ee9eb9131358909d1ec047..e86f78d2fae701f635131e4b60905dfce9d7be5e 100644 (file)
@@ -2843,8 +2843,10 @@ remoteReadConfigFile (struct qemud_server *server, const char *filename)
     GET_CONF_INT (conf, filename, max_client_requests);
 
     GET_CONF_STR (conf, filename, host_uuid);
-    if (virSetHostUUIDStr(host_uuid))
+    if (virSetHostUUIDStr(host_uuid)) {
+        VIR_ERROR(_("invalid host UUID: %s"), host_uuid);
         goto free_and_fail;
+    }
 
     VIR_FREE(host_uuid);