summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1994-12-28 22:13:00 +0000
committerRichard Basch <probe@mit.edu>1994-12-28 22:13:00 +0000
commit79d4cc57ffd4c78db31fa52ce2d9d4259cdc6917 (patch)
treed7ff20878816d12a4323f3e84d2d6dfc8cdd3169 /src/appl
parentff67d69e64b9a643ae32efe17861b75f22e64b04 (diff)
downloadkrb5-79d4cc57ffd4c78db31fa52ce2d9d4259cdc6917.tar.gz
krb5-79d4cc57ffd4c78db31fa52ce2d9d4259cdc6917.tar.xz
krb5-79d4cc57ffd4c78db31fa52ce2d9d4259cdc6917.zip
Fixed a couple more syntactical errors with shadow passwords (now works)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4776 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r--src/appl/bsd/login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c
index 8e968d4bd..a142cb129 100644
--- a/src/appl/bsd/login.c
+++ b/src/appl/bsd/login.c
@@ -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 */