]> git.proxmox.com Git - mirror_lxc.git/commit
Fix lxc-ps -- argument processing
authorDwight Engen <dwight.engen@oracle.com>
Thu, 25 Oct 2012 20:21:53 +0000 (16:21 -0400)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Wed, 31 Oct 2012 16:08:13 +0000 (17:08 +0100)
commita3812bf0c756029b0c7b8e3ca74c57728a791ab1
tree47e3ed519ed8d0288af61b83ad0af4b788d64b33
parentf7a81eeb147c291610cf147418daa9ec8200a17e
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@oracle.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-ps.in