diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-09-21 06:05:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-09-21 06:05:07 +0000 |
commit | 3fa27fcb00a610e71bbf10420ba9e266cc97c8ec (patch) | |
tree | 0e2a2e6362380fb6a0274883afe3793e5e572e2d /nis/nss_compat | |
parent | 55587efd407923bf4c9c5c2208e1db31e9bdd9b6 (diff) | |
download | glibc-3fa27fcb00a610e71bbf10420ba9e266cc97c8ec.zip glibc-3fa27fcb00a610e71bbf10420ba9e266cc97c8ec.tar.gz glibc-3fa27fcb00a610e71bbf10420ba9e266cc97c8ec.tar.bz2 |
Update.
1999-09-20 Jean-Louis Martineau <martinea@IRO.UMontreal.CA>
* nis/nss_compat/compat-pwd.c (getpwuid_plusgroup): Correct
returned errno value in some cases.
1999-080-25 H.J. Lu <hjl@gnu.org>
Diffstat (limited to 'nis/nss_compat')
-rw-r--r-- | nis/nss_compat/compat-pwd.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/nis/nss_compat/compat-pwd.c b/nis/nss_compat/compat-pwd.c index 8859413..6edc9a8 100644 --- a/nis/nss_compat/compat-pwd.c +++ b/nis/nss_compat/compat-pwd.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1996. @@ -873,7 +873,10 @@ getpwnam_plususer (const char *name, struct passwd *result, ent_t *ent, int outvallen; if (yp_get_default_domain (&domain) != YPERR_SUCCESS) - return NSS_STATUS_NOTFOUND; + { + *errnop = ENOENT; + return NSS_STATUS_NOTFOUND; + } if (yp_match (domain, "passwd.byname", name, strlen (name), &outval, &outvallen) != YPERR_SUCCESS) @@ -1376,8 +1379,8 @@ getpwuid_plususer (uid_t uid, struct passwd *result, char *buffer, if (yp_get_default_domain (&domain) != YPERR_SUCCESS) { - *errnop = errno; - return NSS_STATUS_TRYAGAIN; + *errnop = ENOENT; + return NSS_STATUS_NOTFOUND; } sprintf (buf, "%d", uid); @@ -1385,8 +1388,8 @@ getpwuid_plususer (uid_t uid, struct passwd *result, char *buffer, &outval, &outvallen) != YPERR_SUCCESS) { - *errnop = errno; - return NSS_STATUS_TRYAGAIN; + *errnop = ENOENT; + return NSS_STATUS_NOTFOUND; } if (insert_passwd_adjunct (&outval, &outvallen, domain, errnop) |