From 834c4dbfe1b1345d421758ee6427699e1324f673 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 10 Sep 2000 07:31:44 +0000 Subject: (_getopt_internal): Update from glibc. --- lib/getopt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/getopt.c b/lib/getopt.c index c7ddad0fe..a5bc2c95e 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -671,7 +671,8 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only) pfound = p; indfound = option_index; } - else if (pfound->has_arg != p->has_arg + else if (long_only + || pfound->has_arg != p->has_arg || pfound->flag != p->flag || pfound->val != p->val) /* Second or later nonexact match found. */ -- cgit v1.2.3-70-g09d2