summaryrefslogtreecommitdiffstats
path: root/sesman/env.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-02-14 13:45:24 -0800
committerJay Sorg <jay.sorg@gmail.com>2012-02-14 13:45:24 -0800
commitcadad6e181d2a67698e5eb7cacd6b233ae29eb97 (patch)
treee83143e3a2d07493ccfee7c63a43f5f8b1eb4df8 /sesman/env.c
parent2225aa80ad36e88d5a55b743115fd33994703c6f (diff)
downloadxrdp-proprietary-cadad6e181d2a67698e5eb7cacd6b233ae29eb97.tar.gz
xrdp-proprietary-cadad6e181d2a67698e5eb7cacd6b233ae29eb97.zip
/tmp cleanup
Diffstat (limited to 'sesman/env.c')
-rw-r--r--sesman/env.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sesman/env.c b/sesman/env.c
index 9766d847..4bcb22e8 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -74,6 +74,7 @@ env_set_user(char* username, char* passwd_file, int display)
pw_gecos);
if (error == 0)
{
+ g_rm_temp_dir();
error = g_setgid(pw_gid);
if (error == 0)
{
@@ -84,6 +85,7 @@ env_set_user(char* username, char* passwd_file, int display)
uid = pw_uid;
error = g_setuid(uid);
}
+ g_mk_temp_dir(0);
if (error == 0)
{
g_clearenv();