commit | c13ee8c0f32fa816e12f1ac0c55a800066dc1560 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Mon Apr 11 03:58:30 2011 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Apr 11 03:58:30 2011 +0200 |
tree | 3ef3009d96c7d1273f556e3d5c84919c4fc76c30 | |
parent | 6161cdbb83bc35c20cf582bfce203f3e0632fbda [diff] [blame] |
basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argument Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/libbb/single_argv.c b/libbb/single_argv.c index 85137b4..64844dd 100644 --- a/libbb/single_argv.c +++ b/libbb/single_argv.c
@@ -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];