WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] xl: Fix cmdline parsing after backport

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] xl: Fix cmdline parsing after backport changeset.
From: "Xen patchbot-4.0-testing" <patchbot-4.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 08 Jul 2010 02:11:14 -0700
Delivery-date: Thu, 08 Jul 2010 02:18:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] xl: Fix cmdline parsing after backport changeset., Xen patchbot-4.0-testing <=