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 | |
parent | 9df541684a60a94d94cc0c08de119eec718f2318 (diff) | |
download | glibc-d614ad09526f1430836df0e35ed09a0c05f8af6b.tar.gz glibc-d614ad09526f1430836df0e35ed09a0c05f8af6b.tar.xz 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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | nis/nss_compat/compat-pwd.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 9c4fd639e7..655c13b23f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-09-23 Ulrich Drepper <drepper@cygnus.com> + + * nis/nss_compat/compat-pwd.c (internal_getpwuid_r): Set errno in + one more case. + 1999-09-22 Andreas Jaeger <aj@suse.de> * stdio-common/tstscanf.c (main): Add test case from PR libc/1313 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); |