Use secure_getenv() instead of issuid()
This commit is contained in:

committed by
Viktor Dukhovni

parent
cf4efe8de6
commit
7dfad1ab0b
@@ -279,8 +279,7 @@ _expand_temp_folder(krb5_context context, PTYPE param, const char *postfix, char
|
||||
{
|
||||
const char *p = NULL;
|
||||
|
||||
if (!issuid())
|
||||
p = getenv("TEMP");
|
||||
p = secure_getenv("TEMP");
|
||||
|
||||
if (p)
|
||||
*ret = strdup(p);
|
||||
|
Reference in New Issue
Block a user