If HAVE_SHADOW is defined, and no shadow password entry is availble,
authorTheodore Tso <tytso@mit.edu>
Fri, 22 Dec 1995 22:43:27 +0000 (22:43 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 22 Dec 1995 22:43:27 +0000 (22:43 +0000)
try using the password entry in the password file.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7249 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/login.c

index c3c24943ae59410e15691190c26a9f9d7812086a..44363ab6191ea41ec2027d66d2f36bfd6dd29cf7 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 22 17:42:11 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * login.c (main): If HAVE_SHADOW is defined, and no shadow
+               password entry is availble, try using the password entry
+               in the password file.
+
 Tue Dec 19 17:11:37 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * kcmd.c: Also include unistd.h, if it's available.
index 5ea2f7feafb5f3a5544f9ed090ef82afefa74538..d102006aa0c2f7aeed0da9a580ae7686100b105a 100644 (file)
@@ -616,9 +616,8 @@ int retval;
                if (spwd)
                    lpass_ok = !strcmp(namep, spwd->sp_pwdp);
                else
-#else
-                   lpass_ok = !strcmp (namep, pwd->pw_passwd);
 #endif
+                   lpass_ok = !strcmp (namep, pwd->pw_passwd);
                
                if (pwd->pw_uid != 0) { /* Don't get tickets for root */