From ecf3be426964fc07a78a4f0a779165f02cb10fe6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Jan 2000 22:23:58 +0000 Subject: [PATCH] (correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'. --- login-utils/su.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login-utils/su.c b/login-utils/su.c index d75155f9a4..0868f615b7 100644 --- a/login-utils/su.c +++ b/login-utils/su.c @@ -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); -- 2.47.3