From 0ee8c3a412f461aabfd5d17f2056ffa3fe735f07 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 7 Dec 2017 13:30:11 +0000 Subject: 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 Signed-off-by: Ron Yorston --- coreutils/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') 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) unsigned opts; llist_t *unset_env = NULL; - opts = getopt32long(argv, "+iu:+", + opts = getopt32long(argv, "+iu:*", "ignore-environment\0" No_argument "i" "unset\0" Required_argument "u" , &unset_env -- cgit v1.2.3-55-g6feb