summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getopt_long.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2004-04-01 22:32:28 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2004-04-01 22:32:28 +0000
commitf853699a55fcea9affd9a29ab3d2704f4d468df2 (patch)
tree6a6389c064303e74146848da0be1498b2b986a5e /lib/libc/stdlib/getopt_long.c
parented4fbbd5e31fc711d16dfe5f302078762e582ff8 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/getopt_long.c')
-rw-r--r--lib/libc/stdlib/getopt_long.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c
index 81dbe7d897c7..28e24ae3097f 100644
--- a/lib/libc/stdlib/getopt_long.c
+++ b/lib/libc/stdlib/getopt_long.c
@@ -252,8 +252,7 @@ parse_long_options(char * const *nargv, const char *options,
* If this is a known short option, don't allow
* a partial match of a single character.
*/
- if (short_too &&
- (!(flags & FLAG_LONGONLY) || current_argv_len == 1))
+ if (short_too && current_argv_len == 1)
continue;
if (match == -1) /* first partial match */