(correct_password): Correct HAVE_STRUCT_* name in #if guard
authorJim Meyering <jim@meyering.net>
Wed, 9 Feb 2000 11:57:01 +0000 (11:57 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 9 Feb 2000 11:57:01 +0000 (11:57 +0000)
to go along with corrected autoconf test:  Reported by G Queri.

src/su.c

index 0868f61..35a6b21 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -275,7 +275,7 @@ static int
 correct_password (const struct passwd *pw)
 {
   char *unencrypted, *encrypted, *correct;
-#if HAVE_GETSPNAM && HAVE_STRUCT_PASSWD_SP_PWDP
+#if HAVE_GETSPNAM && HAVE_STRUCT_SPWD_SP_PWDP
   /* Shadow passwd stuff for SVR3 and maybe other systems.  */
   struct spwd *sp = getspnam (pw->pw_name);