aboutsummaryrefslogtreecommitdiff
path: root/nis
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-23 19:45:14 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-23 19:45:14 +0000
commitd614ad09526f1430836df0e35ed09a0c05f8af6b (patch)
tree7172a21fcbb6fd2b74ccb7fbfb17a7b4feb10a71 /nis
parent9df541684a60a94d94cc0c08de119eec718f2318 (diff)
downloadglibc-d614ad09526f1430836df0e35ed09a0c05f8af6b.tar
glibc-d614ad09526f1430836df0e35ed09a0c05f8af6b.tar.gz
glibc-d614ad09526f1430836df0e35ed09a0c05f8af6b.tar.bz2
glibc-d614ad09526f1430836df0e35ed09a0c05f8af6b.zip
Update.
1999-09-23 Ulrich Drepper <drepper@cygnus.com> * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Set errno in one more case.
Diffstat (limited to 'nis')
-rw-r--r--nis/nss_compat/compat-pwd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nis/nss_compat/compat-pwd.c b/nis/nss_compat/compat-pwd.c
index 6edc9a81ea..21529c4c28 100644
--- a/nis/nss_compat/compat-pwd.c
+++ b/nis/nss_compat/compat-pwd.c
@@ -1451,7 +1451,10 @@ internal_getpwuid_r (uid_t uid, struct passwd *result, ent_t *ent,
buffer[buflen - 1] = '\xff';
p = fgets (buffer, buflen, ent->stream);
if (p == NULL && feof (ent->stream))
- return NSS_STATUS_NOTFOUND;
+ {
+ *errnop = ENOENT;
+ return NSS_STATUS_NOTFOUND;
+ }
if (p == NULL || buffer[buflen - 1] != '\xff')
{
fsetpos (ent->stream, &pos);