[lxc-devel] [PATCH] Fix lxc-ps -- argument processing

Daniel Lezcano daniel.lezcano at free.fr
Wed Oct 31 16:21:01 UTC 2012


On 10/25/2012 10:45 PM, Dwight Engen wrote:
> >From 7531edbca5872537e9cac59d3d51a9f69d93ec2f Mon Sep 17 00:00:00 2001
> From: Dwight Engen <dwight.engen at oracle.com>
> Date: Thu, 25 Oct 2012 16:21:53 -0400
> Subject: [PATCH] Fix lxc-ps -- argument processing
>
> lxc-ps is supposed to pass arguments after the -- on to ps. The problem is
> that i is expanded once from $@ and the loop will iterate over all the
> arguments that were in $@ at the time of expansion. Inside the loop, there
> are shifts (in the name case for example) that are trying to remove more
> than a single argument. This changes fixes that and makes lxc-ps work as
> documented.
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
> ---
Applied.





More information about the lxc-devel mailing list