mirror of
git://sourceware.org/git/glibc.git
synced 2026-10-18 03:33:48 +08:00
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>.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user