From: Gianni Tedesco Subject: Re: [PATCH 0/1] backport libxl from xen-unstable to xen-4.0-testing Date: Wed, 7 Jul 2010 17:24:51 +0100 Message-ID: <1278519891.1723.115.camel@qabil.uk.xensource.com> References: <1278329977.1723.49.camel@qabil.uk.xensource.com> <19508.42007.492364.459918@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19508.42007.492364.459918@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: "xen-devel@lists.xensource.com" , Stabellini Stefano List-Id: xen-devel@lists.xenproject.org On Wed, 2010-07-07 at 16:58 +0100, Ian Jackson wrote: > Gianni Tedesco writes ("[Xen-devel] [PATCH 0/1] backport libxl from xen-unstable to xen-4.0-testing"): > > Following patch does what it says on the tin. It's a straightforward > > backport of libxl to xen-4.0-testing. This buys harmony of functionality > > between the two trees with the minimal of disruption to anything outside > > tools/libxl. > > With this patch xl create doesn't work any more in 4.0-testing: Wow, I find it BIZARRE that I didn't test that?! I was playing with this for several days. Anyway several other commands appear to have broken too due to incorrect getopt setup. I think this is the correct fix. diff -r 681dce2f9cb8 tools/libxl/xl.c --- a/tools/libxl/xl.c Tue Jul 06 16:00:40 2010 +0100 +++ b/tools/libxl/xl.c Wed Jul 07 17:22:40 2010 +0100 @@ -65,6 +65,8 @@ srand(time(0)); + optind = 2; + cspec = cmdtable_lookup(argv[1]); if (cspec) return cspec->cmd_impl(argc, argv);