diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-09-23 19:45:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-09-23 19:45:14 +0000 |
commit | d614ad09526f1430836df0e35ed09a0c05f8af6b (patch) | |
tree | 7172a21fcbb6fd2b74ccb7fbfb17a7b4feb10a71 /nis/nss_compat | |
parent | Update. (diff) | |
download | 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/nss_compat')
-rw-r--r-- | nis/nss_compat/compat-pwd.c | 5 |
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); |