From 64bc8cd775a10ebe3fb163ef34c5a4415e567607 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 19 Apr 1999 13:19:02 +0000 Subject: [PATCH] conditionalize the kafs calls on KRB4 git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5997 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/login/login.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/appl/login/login.c b/appl/login/login.c index f60577bbe..0b5618ffd 100644 --- a/appl/login/login.c +++ b/appl/login/login.c @@ -157,6 +157,8 @@ krb5_verify(struct passwd *pwd, const char *password) return ret; } +#ifdef KRB4 + static void krb5_get_afs_tokens (struct passwd *pwd) { @@ -198,6 +200,9 @@ krb5_get_afs_tokens (struct passwd *pwd) krb5_cc_close (context, ccache); krb5_free_context (context); } + +#endif /* KRB4 */ + #endif /* KRB5 */ #ifdef KRB4 @@ -398,12 +403,12 @@ do_login(struct passwd *pwd) pwd->pw_dir = "/"; fprintf(stderr, "Logging in with home = \"/\".\n"); } +#ifdef KRB4 #ifdef KRB5 krb5_get_afs_tokens (pwd); #endif -#ifdef KRB4 krb4_get_afs_tokens (pwd); -#endif +#endif /* KRB4 */ add_env("HOME", pwd->pw_dir); add_env("USER", pwd->pw_name);