basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argument
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -10,6 +10,8 @@
|
||||
|
||||
char* FAST_FUNC single_argv(char **argv)
|
||||
{
|
||||
if (argv[1] && strcmp(argv[1], "--") == 0)
|
||||
argv++;
|
||||
if (!argv[1] || argv[2])
|
||||
bb_show_usage();
|
||||
return argv[1];
|
||||
|
Reference in New Issue
Block a user