Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conf: Stop parsing options at first non-option argument
Given that pasta supports specifying a command to be executed on the command line, even without the usual -- separator as long as there's no ambiguity, we shouldn't eat up options that are not meant for us. Paul reports, for instance, that with: pasta --config-net ip -6 route -6 is taken by pasta to mean --ipv6-only, and we execute 'ip route'. That's because getopt_long(), by default, shuffles the argument list to shift non-option arguments at the end. Avoid that by adding '+' at the beginning of 'optstring'. Reported-by: Paul Holzinger <[email protected]> Signed-off-by: Stefano Brivio <[email protected]> Reviewed-by: David Gibson <[email protected]>
- Loading branch information