projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udhcpc: fix a problem with binary-encoded options #2
[oweals/busybox.git]
/
libbb
/
single_argv.c
diff --git
a/libbb/single_argv.c
b/libbb/single_argv.c
index 85137b40fe625556d6d1276941f36040e0906246..64844ddf8f6dae780b6330404a58134b9232c0ba 100644
(file)
--- 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];