summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
Diffstat (limited to 'sesman')
-rw-r--r--sesman/env.c4
-rw-r--r--sesman/sesman.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sesman/env.c b/sesman/env.c
index ccec950b..29bd281d 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -69,7 +69,7 @@ env_check_password_file(const char *filename, const char *passwd)
g_strncpy(encryptedPasswd, passwd, 8);
g_memset(key, 0, sizeof(key));
g_mirror_memcpy(key, g_fixedkey, 8);
- des = ssl_des3_encrypt_info_create(key, 0);
+ des = ssl_des3_encrypt_info_create(key, 0);
ssl_des3_encrypt(des, 8, encryptedPasswd, encryptedPasswd);
ssl_des3_info_delete(des);
fd = g_file_open_ex(filename, 0, 1, 1, 1);
@@ -124,7 +124,7 @@ env_set_user(const char *username, char **passwd_file, int display,
error = g_setuid(uid);
}
- g_mk_temp_dir(0);
+ g_mk_socket_path(0);
if (error == 0)
{
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 98346ea8..fd98370c 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -418,7 +418,7 @@ main(int argc, char **argv)
"starting xrdp-sesman with pid %d", g_pid);
/* make sure the socket directory exists */
- g_mk_temp_dir("xrdp-sesman");
+ g_mk_socket_path("xrdp-sesman");
/* make sure the /tmp/.X11-unix directory exists */
if (!g_directory_exist("/tmp/.X11-unix"))