Fixed a couple more syntactical errors with shadow passwords (now works)
authorRichard Basch <probe@mit.edu>
Wed, 28 Dec 1994 22:13:00 +0000 (22:13 +0000)
committerRichard Basch <probe@mit.edu>
Wed, 28 Dec 1994 22:13:00 +0000 (22:13 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4776 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/login.c

index 8e968d4bd56771619201bd28836a5fe95cb23b21..a142cb129c6f1a2a5766501bbb0b97378a081099 100644 (file)
@@ -88,7 +88,7 @@ char copyright[] =
 #include <stdio.h>
 #include <string.h>
 
-#ifdef HAS_SHADOW
+#ifdef HAVE_SHADOW
 #include <shadow.h>
 #endif
 
@@ -162,7 +162,7 @@ int timeout = 300;
 
 struct passwd *pwd;
 #ifdef HAVE_SHADOW
-struct spwd *spwd
+struct spwd *spwd;
 #endif
 
 char term[64], *hostname, *username;
@@ -526,7 +526,7 @@ main(argc, argv)
                        salt = "xx";
 #ifdef HAVE_SHADOW
                if (spwd = getspnam(username))
-                   salt = sp_pwdp;
+                   salt = spwd->sp_pwdp;
 #endif
 
                /* if user not super-user, check for disabled logins */