+1. Gotta love those little fixes :) Pushed.
Thanks.
Sharad Mishra wrote:
# HG changeset patch
# User Sharad Mishra <snmishra(a)us.ibm.com>
# Date 1292363991 28800
# Node ID 35396e5b805193c024b6d4f065136d7b57a0b03d
# Parent 8c322e30cabbf9e62cbae06e5566fc1662ad539c
Fix to support domain name with space.
Libvirt-cim was failing to correctly parse domain names that had whitespace in between.
For example, domain "test domain", would get parsed as just "test".
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r 8c322e30cabb -r 35396e5b8051 libxkutil/misc_util.c
--- a/libxkutil/misc_util.c Wed Dec 08 12:20:26 2010 -0800
+++ b/libxkutil/misc_util.c Tue Dec 14 13:59:51 2010 -0800
@@ -448,7 +448,7 @@
char *tmp_pfx = NULL;
char *tmp_name = NULL;
- ret = sscanf(id, "%a[^:]:%as", &tmp_pfx, &tmp_name);
+ ret = sscanf(id, "%a[^:]:%a[^\n]", &tmp_pfx, &tmp_name);
if (ret != 2) {
ret = 0;
goto out;
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
--
Chip Vincent
Open Virtualization, Linux Technology Center
IBM Systems & Technology Group
phone: 919-254-4482, T/L 444-4482
email: cvincent(a)us.ibm.com