From aadb7de0031d17914eb5d4f926f1a2294f4ed1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 18 Mar 2003 13:46:09 +0000 Subject: [PATCH] always try krb5_afslog, and while here do a setpag too git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11860 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/gss_userok.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/appl/ftp/ftpd/gss_userok.c b/appl/ftp/ftpd/gss_userok.c index bd52873d8..2a45d8a9f 100644 --- a/appl/ftp/ftpd/gss_userok.c +++ b/appl/ftp/ftpd/gss_userok.c @@ -103,11 +103,10 @@ gss_userok(void *app_data, char *username) chown (ticketfile+5, pw->pw_uid, pw->pw_gid); -#ifdef KRB4 if (k_hasafs()) { - krb5_afslog(gssapi_krb5_context, ccache, 0, 0); + if (k_setpag() == 0) + krb5_afslog(gssapi_krb5_context, ccache, 0, 0); } -#endif esetenv ("KRB5CCNAME", ticketfile, 1); fail: