+2009-12-02 Eric Blake <ebb9@byu.net>
+
+ [BZ #11041]
+ * posix/getopt.c (_getopt_internal_r): Handle '-Wfoo' identically
+ to '--foo', with optional argument or non-ambiguous prefix.
+
2010-04-07 Ulrich Drepper <drepper@redhat.com>
[BZ #11134]
if NSS_FLAG_ADJUNCT_AS_SHADOW is set.
(_nss_nis_getpwnam_r): Likewise.
(_nss_nis_getpwuid_r): Likewise.
- * nis/nss_nis/nis-spwd.c (ent_adjunct_used): Nee global variable.
+ * nis/nss_nis/nis-spwd.c (ent_adjunct_used): New global variable.
(_nss_nis_setspent): Also reset ent_adjunct_used.
(internal_nis_getspent_r): If new_start is set and shadow.byname table
does not exist and NSS_FLAG_ADJUNCT_AS_SHADOW is set, try to get
pfound = p;
indfound = option_index;
}
- else
+ else if (long_only
+ || pfound->has_arg != p->has_arg
+ || pfound->flag != p->flag
+ || pfound->val != p->val)
/* Second or later nonexact match found. */
ambig = 1;
}
return optstring[0] == ':' ? ':' : '?';
}
}
+ else
+ d->optarg = NULL;
d->__nextchar += strlen (d->__nextchar);
if (longind != NULL)
*longind = option_index;