projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7c910
)
libxenlight: fix cd-insert cli arguments parsing
author
Keir Fraser
<keir.fraser@citrix.com>
Fri, 11 Dec 2009 08:47:51 +0000
(08:47 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Fri, 11 Dec 2009 08:47:51 +0000
(08:47 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl.c
b/tools/libxl/xl.c
index 99f89c0700ea676e2948841c4269bccb56be58e2..fa92ae3f4de957f402129ed615995355e9904916 100644
(file)
--- a/
tools/libxl/xl.c
+++ b/
tools/libxl/xl.c
@@
-904,10
+904,10
@@
void cd_insert(char *dom, char *virtdev, char *phys)
disk.phystype = PHYSTYPE_FILE;
}
} else {
- p = '\0';
- disk.physpath = strdup(p);
+ *p = '\0';
p++;
- libxl_string_to_phystype(&ctx, p, &disk.phystype);
+ disk.physpath = p;
+ libxl_string_to_phystype(&ctx, phys, &disk.phystype);
}
} else {
disk.physpath = NULL;