busybox/util-linux
Patrick Steinhardt d253b557a3 setpriv: do not process remaining args
By default, the 'getopt32' call will continue parsing the command line
even after hitting a non-option string. But in setpriv, this should be
avoided, as all parameters following the initial non-option argument are
in fact arguments to the binary that is to be executed by setpriv.
Otherwise, calling e.g. 'busybox setpriv ls -l' would result in an error
due to the unknown parameter "-l".

Fix the issue by passing "+" as the first character in the options
string. This will cause 'getopt32' to stop processing after hitting the
first non-option.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-04 17:10:31 +02:00
..
2017-04-11 13:33:54 +02:00
2016-06-19 18:15:33 +02:00
2016-06-19 18:15:33 +02:00
2013-02-11 00:22:59 +01:00
2017-04-11 13:33:54 +02:00
2017-01-21 02:49:58 +01:00
2017-04-12 20:11:34 +02:00
2017-01-25 16:50:30 +01:00
2016-09-07 14:09:01 +02:00
2016-03-14 19:34:15 +01:00
2017-01-21 02:49:58 +01:00
2017-01-21 02:49:58 +01:00