diff --git a/lib/krb5/expand_path.c b/lib/krb5/expand_path.c index c8a48847d..b8e5049a0 100644 --- a/lib/krb5/expand_path.c +++ b/lib/krb5/expand_path.c @@ -279,8 +279,9 @@ _expand_temp_folder(krb5_context context, PTYPE param, const char *postfix, char { const char *p = NULL; - if (issuid()) + if (!issuid()) p = getenv("TEMP"); + if (p) *ret = strdup(p); else