From f37cc2cfaee927c8ef7142d1272574b9bb567188 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 16 Oct 1995 22:12:23 +0000 Subject: [PATCH] ---------------------------------------------------------------------- automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: ---------------------------------------------------------------------- login.krb5: Don't display warning about no tickets being obtained if -F, -f or -k specified. CVS: git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6971 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 4 ++++ src/appl/bsd/login.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 598739aec..b56cfaa30 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +Mon Oct 16 17:27:43 1995 Sam Hartman + + * login.c (main): Don't print warning about no tickets obtained if we didn't ask for a password. Also, define LOGNAME for so sysvish systems are happy. Patch from ramus@nersc.gov. + Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu) * krcp.c, krlogin.c, krlogind.c, krsh.c, krshd.c : diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index a1f87b76c..8600f9531 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -894,6 +894,7 @@ bad_login: setenv("PATH", LPATH, 0); setenv("USER", pwd->pw_name, 0); setenv("SHELL", pwd->pw_shell, 0); + setenv("LOGNAME", pwd->pw_name, 0); if (term[0] == '\0') (void) strncpy(term, stypeof(tty), sizeof(term)); @@ -960,7 +961,7 @@ bad_login: struct stat st; #ifdef KRB4 - if (!krbflag) + if (!krbflag && !fflag && !Fflag && !eflag ) printf("\nWarning: No Kerberos tickets obtained.\n\n"); #endif /* KRB4 */ motd(); -- 2.26.2