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-devel

Re: [Xen-devel] [PATCH] xl: fix vcpu-set cmd line parsing

stefano.stabellini@xxxxxxxxxxxxx writes ("[Xen-devel] [PATCH] xl: fix vcpu-set 
cmd line parsing"):
> -    if (argc != 4) {
> -        help("vcpu-set");
...
> +    if (optind >= argc - 1) {
> +        help("vcpu-set");

I applaud your efforts to fix up the broken command-line parsing but
surely this can't be right ?  We need to have exactly two more
arguments, not at least two.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>