From 44ddd05ec119b08415b2021f3c1a17050b527dd6 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Wed, 10 Jul 2013 22:02:43 +0200 Subject: [PATCH] honor env when not issuid --- lib/krb5/expand_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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