diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-01 10:41:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-01 10:41:59 +0000 |
commit | 85c165befc61d049abe3cc443c275a210c569338 (patch) | |
tree | f89be618e011f7164d61455e330313b01325efc0 /nis/nss_nis/nis-pwd.c | |
parent | 6a805a0b401e2ffbdc55404d8b741fd94d0f4deb (diff) | |
download | glibc-85c165befc61d049abe3cc443c275a210c569338.tar.gz glibc-85c165befc61d049abe3cc443c275a210c569338.tar.xz glibc-85c165befc61d049abe3cc443c275a210c569338.zip |
Update.
1998-09-01 10:34 Ulrich Drepper <drepper@cygnus.com> * manual/locale.texi: Almost compelte rewrite. Document more functions and functionality. * manual/arith.texi: Correct reference. * manual/string.texi: Pretty printing. * manual/texinfo.tex: Update from last available version. 1998-08-31 22:44 Ulrich Drepper <drepper@cygnus.com> * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for invalid password. (_nss_nis_getpwuid_r): Likewise. Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>. * inet/rcmd.c: Implement netgroup support. Patch by Dick Streefland <dick_streefland@tasking.com>.
Diffstat (limited to 'nis/nss_nis/nis-pwd.c')
-rw-r--r-- | nis/nss_nis/nis-pwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nss_nis/nis-pwd.c b/nis/nss_nis/nis-pwd.c index 614637a173..c0acaa13e5 100644 --- a/nis/nss_nis/nis-pwd.c +++ b/nis/nss_nis/nis-pwd.c @@ -254,7 +254,7 @@ _nss_nis_getpwnam_r (const char *name, struct passwd *pwd, char *endp; size_t restlen; - if (encrypted != NULL + if (encrypted == NULL || (endp = strchr (++encrypted, ':')) == NULL || (p = strchr (p + 1, ':')) == NULL) { @@ -358,7 +358,7 @@ _nss_nis_getpwuid_r (uid_t uid, struct passwd *pwd, char *endp; size_t restlen; - if (encrypted != NULL + if (encrypted == NULL || (endp = strchr (++encrypted, ':')) == NULL || (p = strchr (p + 1, ':')) == NULL) { |