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-17 16:13:32 +02:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2017-04-17 16:13:32 +02:00
2017-04-12 13:58:40 +02:00
2017-01-10 14:58:54 +01:00
2017-01-10 14:58:54 +01:00
2017-04-12 13:58:40 +02:00
2017-04-11 13:33:54 +02:00
2016-11-23 11:46:32 +01:00
2017-01-10 14:58:54 +01:00
2016-11-23 11:46:32 +01:00
2010-08-16 20:14:46 +02:00
2016-11-27 20:47:01 +01: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-07-03 21:31:16 +02:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2017-01-29 14:57:33 +01:00
2017-01-11 16:17: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 17:00:38 +01:00
2017-01-25 16:50:30 +01:00
2017-04-17 16:13:32 +02:00
2017-04-12 13:58:40 +02:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2017-04-12 13:58:40 +02:00
2017-04-12 13:58:40 +02:00
2017-03-16 16:55:47 +01:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2016-09-07 14:09:01 +02:00
2017-04-12 14:16:29 +02:00
2016-03-14 19:34:15 +01:00
2017-01-29 14:57:33 +01:00
2017-01-29 14:57:33 +01:00
2016-11-23 11:46:32 +01:00
2017-01-29 14:57:33 +01:00
2016-11-23 11:46:32 +01:00
2017-01-11 16:17:59 +01:00
2017-03-16 16:55:47 +01:00
2017-04-12 13:58:40 +02:00
2017-01-21 02:49:58 +01:00
2016-11-23 11:46:32 +01:00
2017-01-20 16:07:14 +01:00
2016-11-23 11:46:32 +01:00
2016-11-28 01:22:57 +01:00
2017-04-17 16:13:32 +02:00
2016-11-23 11:46:32 +01:00
2017-01-21 02:49:58 +01:00
2016-11-23 11:46:32 +01:00
2016-11-23 11:46:32 +01:00
2017-01-29 14:57:33 +01:00
2017-07-04 17:10:31 +02:00
2017-04-12 13:58:40 +02:00
2017-01-29 14:57:33 +01:00
2017-04-17 16:13:32 +02:00
2017-04-12 13:58:40 +02:00
2016-11-23 11:46:32 +01:00
2017-03-16 17:51:06 +01:00
2017-06-14 16:20:02 +02:00
2017-04-12 13:58:40 +02:00