diff options
author | Ron Yorston <rmy@pobox.com> | 2017-12-25 21:36:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-12-25 21:36:05 +0100 |
commit | 8d8ee910f0a624fefd2a4aaefeb406003dea7807 (patch) | |
tree | 6c362ecdd08c525b59259400fe79a6a7cc4e7b71 /coreutils | |
parent | a07fead8235c479f428dd5265e4f3539abb9c3fe (diff) | |
download | busybox-w32-8d8ee910f0a624fefd2a4aaefeb406003dea7807.tar.gz busybox-w32-8d8ee910f0a624fefd2a4aaefeb406003dea7807.tar.bz2 busybox-w32-8d8ee910f0a624fefd2a4aaefeb406003dea7807.zip |
env: -u option fails due to typo
The -u option is supposed to be allowed to appear multiple times; the
option string supplied to getopt32long requires it to be followed by a
nonnegative integer.
Reported-by: Keith Maxwell <keith.maxwell@gmail.com>
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index 20453e871..0aebead1b 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -54,7 +54,7 @@ int env_main(int argc UNUSED_PARAM, char **argv) | |||
54 | unsigned opts; | 54 | unsigned opts; |
55 | llist_t *unset_env = NULL; | 55 | llist_t *unset_env = NULL; |
56 | 56 | ||
57 | opts = getopt32long(argv, "+iu:+", | 57 | opts = getopt32long(argv, "+iu:*", |
58 | "ignore-environment\0" No_argument "i" | 58 | "ignore-environment\0" No_argument "i" |
59 | "unset\0" Required_argument "u" | 59 | "unset\0" Required_argument "u" |
60 | , &unset_env | 60 | , &unset_env |