commit | 5f4e1ac399a7f986b5d4cc5a61e76c5d6c0ca520 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Wed Feb 13 10:29:31 2013 -0800 |
committer | Kir Kolyshkin <kir@openvz.org> | Wed Feb 13 10:29:31 2013 -0800 |
tree | 30e8f33e2d66f78d74fdb801f3bae02e9c0768e2 | |
parent | e90cd9cb31413e26309b649e8f30893c7febcffd [diff] |
vzctl snapshot-list: fix processing first option First option to snapshot-list were ignored, because getopt_long() starts processing options from argv[1], assuming argv[0] is binary name. To fix, do not increment argv (and decrement argc) when calling run_action(); instead, do this inside run_action when needed. This way if we would add something that uses getopt() we'd be fine. Signed-off-by: Kir Kolyshkin <kir@openvz.org>