2008-03-29 Ulrich Drepper <drepper@redhat.com>
+ * posix/getopt.c (_getopt_internal_r): Remove old POSIX-demanded
+ error message. POSIX today does not require the messages to be in
+ a specific form. Suggested by Jim Meyering <jim@meyering.net>.
+
[BZ #5979]
* sunrpc/auth_unix.c: Unify printed strings.
* sunrpc/clnt_tcp.c: Likewise.
if (print_errors)
{
#if defined _LIBC && defined USE_IN_LIBIO
- char *buf;
- int n;
+ char *buf;
+ int n;
#endif
- if (d->__posixly_correct)
- {
-#if defined _LIBC && defined USE_IN_LIBIO
- n = __asprintf (&buf, _("%s: illegal option -- '%c'\n"),
- argv[0], c);
-#else
- fprintf (stderr, _("%s: illegal option -- '%c'\n"), argv[0],
- c);
-#endif
- }
- else
- {
#if defined _LIBC && defined USE_IN_LIBIO
- n = __asprintf (&buf, _("%s: invalid option -- '%c'\n"),
- argv[0], c);
+ n = __asprintf (&buf, _("%s: invalid option -- '%c'\n"),
+ argv[0], c);
#else
- fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0],
- c);
+ fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0], c);
#endif
- }
#if defined _LIBC && defined USE_IN_LIBIO
if (n >= 0)