diff options
author | Ron Yorston <rmy@pobox.com> | 2017-12-07 13:30:11 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-12-09 09:16:07 +0000 |
commit | 0ee8c3a412f461aabfd5d17f2056ffa3fe735f07 (patch) | |
tree | aff7d169297febf07da1ad5adf1c75e8a4e26794 /coreutils | |
parent | bcf14b82e442e797fdd370afc80a82ef295ac1b0 (diff) | |
download | busybox-w32-0ee8c3a412f461aabfd5d17f2056ffa3fe735f07.tar.gz busybox-w32-0ee8c3a412f461aabfd5d17f2056ffa3fe735f07.tar.bz2 busybox-w32-0ee8c3a412f461aabfd5d17f2056ffa3fe735f07.zip |
env: fix typo in option string
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>
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 |