diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-30 22:23:58 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-30 22:23:58 +0000 |
commit | be1784cf3100b2008b45fa31d5380a449d7ed696 (patch) | |
tree | d7d61ce0fb111ca1e2edb11fa6f5b3a152c932e2 /src | |
parent | c453666c3a863c47095ab39d95b6e694137344ad (diff) | |
download | coreutils-be1784cf3100b2008b45fa31d5380a449d7ed696.tar.xz |
(correct_password): Guard with `HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP',
rather than just `#ifdef HAVE_SHADOW_H'.
Diffstat (limited to 'src')
-rw-r--r-- | src/su.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |