honor env when not issuid

This commit is contained in:
Love Hornquist Astrand
2013-07-10 22:02:43 +02:00
parent 403f599dbd
commit 44ddd05ec1

View File

@@ -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