mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Update.
* nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 is no entry has been found.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
2003-02-17 Ulrich Drepper <drepper@redhat.com>
|
2003-02-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* nss/getXXbyYY_r.c (REENTRANT_NAME): Return 0 is no entry has
|
||||||
|
been found.
|
||||||
|
|
||||||
* sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
|
* sysdeps/posix/sysconf.c (__sysconf): Test for LOGIN_NAME_MAX and
|
||||||
TTY_NAME_MAX and not the _POSIX_* minimal value macros.
|
TTY_NAME_MAX and not the _POSIX_* minimal value macros.
|
||||||
* sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
|
* sysdeps/unix/sysv/linux/bits/local_lim.h: Define TTY_NAME_MAX
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1996,97,98,99,2000,2001,2002 Free Software Foundation, Inc.
|
/* Copyright (C) 1996-2002, 2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@@ -247,8 +247,7 @@ done:
|
|||||||
#ifdef POSTPROCESS
|
#ifdef POSTPROCESS
|
||||||
POSTPROCESS;
|
POSTPROCESS;
|
||||||
#endif
|
#endif
|
||||||
return (status == NSS_STATUS_SUCCESS ? 0
|
return (status != NSS_STATUS_TRYAGAIN ? 0
|
||||||
: status != NSS_STATUS_TRYAGAIN ? ENOENT
|
|
||||||
#ifdef NEED_H_ERRNO
|
#ifdef NEED_H_ERRNO
|
||||||
/* These functions only set errno if h_errno is NETDB_INTERNAL. */
|
/* These functions only set errno if h_errno is NETDB_INTERNAL. */
|
||||||
: *h_errnop != NETDB_INTERNAL ? EAGAIN
|
: *h_errnop != NETDB_INTERNAL ? EAGAIN
|
||||||
@@ -269,7 +268,7 @@ OLD (REENTRANT_NAME) (ADD_PARAMS, LOOKUP_TYPE *resbuf, char *buffer,
|
|||||||
int ret = INTERNAL (REENTRANT_NAME) (ADD_VARIABLES, resbuf, buffer,
|
int ret = INTERNAL (REENTRANT_NAME) (ADD_VARIABLES, resbuf, buffer,
|
||||||
buflen, result H_ERRNO_VAR);
|
buflen, result H_ERRNO_VAR);
|
||||||
|
|
||||||
if (ret != 0)
|
if (ret != 0 || result == NULL)
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user