]> git.proxmox.com Git - mirror_lxc.git/commit
Fix lxc-netstat -- argument processing
authorDwight Engen <dwight.engen@oracle.com>
Wed, 31 Oct 2012 16:08:13 +0000 (17:08 +0100)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Wed, 31 Oct 2012 16:08:13 +0000 (17:08 +0100)
commita24c5a40dc8c5ae277cd1623afa86b4e7e0dbf19
tree6af473c328a4718f2b30bfefebb62d56a355c08e
parenta3812bf0c756029b0c7b8e3ca74c57728a791ab1
Fix lxc-netstat -- argument processing

Commit 21e487f2 introduced the use of getopt, but getopt will fail when
it sees arguments meant for netstat that are not in [short|long]options.
There should not be any ambiguity about arguments with the same letter:
those to the left of the -- are destined for lxc-netstat and those to
the right for the real netstat, which the original code handles by
shifting out all arguments it recognizes before the -- is hit.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-netstat.in