(krb5_cc_set_default_name): only read KRB5CCNAME when not suid

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12516 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-07-25 08:26:36 +00:00
parent b411ada0ec
commit f837df3b5a

View File

@@ -200,8 +200,9 @@ krb5_cc_set_default_name(krb5_context context, const char *name)
char *p;
if (name == NULL) {
char *e;
e = getenv("KRB5CCNAME");
char *e = NULL;
if(!issuid())
e = getenv("KRB5CCNAME");
if (e)
p = strdup(e);
else