From: Theodore Tso Date: Fri, 22 Dec 1995 22:43:27 +0000 (+0000) Subject: If HAVE_SHADOW is defined, and no shadow password entry is availble, X-Git-Tag: krb5-1.0-beta6~670 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32993b4f745859c3332e5d13973f730b02166bdf;p=krb5.git 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 --- 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 */