Compare commits

...

2 Commits

Author SHA1 Message Date
Jim Meyering
488aef7301 *** empty log message *** 2000-01-30 22:24:11 +00:00
Jim Meyering
be1784cf31 (correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',
rather than just `#ifdef HAVE_SHADOW_H'.
2000-01-30 22:23:58 +00:00
2 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,9 @@
* Version 2.0e.
* src/su.c (correct_password): Guard with `HAVE_GETSPNAM &&
HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'.
* po/POTFILES.in: Add lib/makepath.c, lib/obstack.c, lib/rpmatch.c,
and lib/same.c.

View File

@@ -1,5 +1,5 @@
/* su for GNU. Run a shell with substitute user and group IDs.
Copyright (C) 1992-1999 Free Software Foundation, Inc.
Copyright (C) 1992-2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -275,7 +275,7 @@ static int
correct_password (const struct passwd *pw)
{
char *unencrypted, *encrypted, *correct;
#ifdef HAVE_SHADOW_H
#if HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP
/* Shadow passwd stuff for SVR3 and maybe other systems. */
struct spwd *sp = getspnam (pw->pw_name);