projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e162d2d
)
xl: the name field in a guest config file is mandatory
author
Ian Campbell
<ian.campbell@citrix.com>
Tue, 29 Nov 2011 14:17:27 +0000
(14:17 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 29 Nov 2011 14:17:27 +0000
(14:17 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
tools/libxl/xl_cmdimpl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl_cmdimpl.c
b/tools/libxl/xl_cmdimpl.c
index a9b7ef2e39b0760c162db3ba26df131ec9530c9b..d1d5df56badfb88a3733701aba7a642e10835840 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-575,8
+575,10
@@
static void parse_config_data(const char *configfile_filename_report,
if (!xlu_cfg_get_long (config, "hap", &l))
c_info->hap = l;
- if (xlu_cfg_replace_string (config, "name", &c_info->name))
- c_info->name = strdup("test");
+ if (xlu_cfg_replace_string (config, "name", &c_info->name)) {
+ fprintf(stderr, "Domain name must be specified.");
+ exit(1);
+ }
if (!xlu_cfg_get_string (config, "uuid", &buf) ) {
if ( libxl_uuid_from_string(&c_info->uuid, buf) ) {