[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] xl: Fix cmdline parsing after backport changeset.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1278579484 -3600 # Node ID d6d4b42c8a981e854c71541eb4f4596e8a8064a1 # Parent 9a4783e7eacb30ae723959565cd5c62d224ffc9f xl: Fix cmdline parsing after backport changeset. From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/libxl/xl.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) diff -r 9a4783e7eacb -r d6d4b42c8a98 tools/libxl/xl.c --- a/tools/libxl/xl.c Tue Jul 06 18:43:50 2010 +0100 +++ b/tools/libxl/xl.c Thu Jul 08 09:58:04 2010 +0100 @@ -65,11 +65,13 @@ int main(int argc, char **argv) srand(time(0)); + optind = 2; + cspec = cmdtable_lookup(argv[1]); if (cspec) return cspec->cmd_impl(argc, argv); else if (!strcmp(argv[1], "help")) { - help(argv[optind]); + help(argv[1]); exit(0); } else { fprintf(stderr, "command not implemented\n"); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |