From 32993b4f745859c3332e5d13973f730b02166bdf Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 22 Dec 1995 22:43:27 +0000 Subject: [PATCH] If HAVE_SHADOW is defined, and no shadow password entry is availble, 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 | 6 ++++++ src/appl/bsd/login.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c3c24943a..44363ab61 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 22 17:42:11 1995 Theodore Y. Ts'o + + * 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 * kcmd.c: Also include unistd.h, if it's available. diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 5ea2f7fea..d102006aa 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -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 */ -- 2.26.2