diff options
author | Hans Insulander <hin@cvs.openbsd.org> | 2002-02-27 09:52:46 +0000 |
---|---|---|
committer | Hans Insulander <hin@cvs.openbsd.org> | 2002-02-27 09:52:46 +0000 |
commit | 71b935ed052d9c98903f6e10edd73c46c6362052 (patch) | |
tree | c12f1a3f152267cbdc5c2b5876fe83ba833e7a00 | |
parent | d493948af26cc2877e46b54b786e13f7b238ca1f (diff) |
Small fix from Bjorn Sandell <biorn@dce.chalmers.se> that makes it compile
when KRB524 is not defined.
Closes PR #2305
-rw-r--r-- | libexec/login_krb5/login_krb5.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libexec/login_krb5/login_krb5.c b/libexec/login_krb5/login_krb5.c index 59949277dbb..6b918288be8 100644 --- a/libexec/login_krb5/login_krb5.c +++ b/libexec/login_krb5/login_krb5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_krb5.c,v 1.13 2002/02/06 09:18:31 hin Exp $ */ +/* $OpenBSD: login_krb5.c,v 1.14 2002/02/27 09:52:45 hin Exp $ */ /*- * Copyright (c) 2001, 2002 Hans Insulander <hin@openbsd.org>. @@ -54,8 +54,10 @@ store_tickets(struct passwd *pwd, int ticket_newfiles, int ticket_store, int token_install) { char cc_file[MAXPATHLEN]; krb5_ccache ccache_store; +#ifdef KRB524 int get_krb4_ticket = 0; char krb4_ticket_file[MAXPATHLEN]; +#endif if (ticket_newfiles) snprintf(cc_file, sizeof(cc_file), "FILE:/tmp/krb5cc_%d", @@ -136,8 +138,8 @@ store_tickets(struct passwd *pwd, int ticket_newfiles, int ticket_store, pwd->pw_uid, pwd->pw_gid); } } - } #endif + } /* Need to chown the ticket file */ #ifdef KRB524 |