From 85c165befc61d049abe3cc443c275a210c569338 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 1 Sep 1998 10:41:59 +0000 Subject: Update. 1998-09-01 10:34 Ulrich Drepper * 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 * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for invalid password. (_nss_nis_getpwuid_r): Likewise. Patch by Matthew Arnison . * inet/rcmd.c: Implement netgroup support. Patch by Dick Streefland . --- nis/nss_nis/nis-pwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nis/nss_nis') 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) { -- cgit v1.2.3