mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
* 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>.
This commit is contained in:
parent
1d20f7f834
commit
1e489af957
@ -1,5 +1,9 @@
|
|||||||
2008-03-29 Ulrich Drepper <drepper@redhat.com>
|
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]
|
[BZ #5979]
|
||||||
* sunrpc/auth_unix.c: Unify printed strings.
|
* sunrpc/auth_unix.c: Unify printed strings.
|
||||||
* sunrpc/clnt_tcp.c: Likewise.
|
* sunrpc/clnt_tcp.c: Likewise.
|
||||||
|
@ -792,30 +792,16 @@ _getopt_internal_r (int argc, char *const *argv, const char *optstring,
|
|||||||
if (print_errors)
|
if (print_errors)
|
||||||
{
|
{
|
||||||
#if defined _LIBC && defined USE_IN_LIBIO
|
#if defined _LIBC && defined USE_IN_LIBIO
|
||||||
char *buf;
|
char *buf;
|
||||||
int n;
|
int n;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (d->__posixly_correct)
|
|
||||||
{
|
|
||||||
#if defined _LIBC && defined USE_IN_LIBIO
|
#if defined _LIBC && defined USE_IN_LIBIO
|
||||||
n = __asprintf (&buf, _("%s: illegal option -- '%c'\n"),
|
n = __asprintf (&buf, _("%s: invalid option -- '%c'\n"),
|
||||||
argv[0], c);
|
argv[0], c);
|
||||||
#else
|
#else
|
||||||
fprintf (stderr, _("%s: illegal option -- '%c'\n"), argv[0],
|
fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0], c);
|
||||||
c);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
#if defined _LIBC && defined USE_IN_LIBIO
|
|
||||||
n = __asprintf (&buf, _("%s: invalid option -- '%c'\n"),
|
|
||||||
argv[0], c);
|
|
||||||
#else
|
|
||||||
fprintf (stderr, _("%s: invalid option -- '%c'\n"), argv[0],
|
|
||||||
c);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined _LIBC && defined USE_IN_LIBIO
|
#if defined _LIBC && defined USE_IN_LIBIO
|
||||||
if (n >= 0)
|
if (n >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user