diff options
author | Ian Geiser <geiseri@geekcentral.pub> | 2017-07-13 12:01:07 -0400 |
---|---|---|
committer | metalefty <meta@vmeta.jp> | 2017-07-14 20:52:38 +0900 |
commit | 4b87548b71566e066a3186c5e0258cfd4a1fedf1 (patch) | |
tree | 77fd0da1350b0d8a1749f9c91ef3e5f593ad918a /sesman/env.c | |
parent | 59a7e8aedfdac1ebea0b1e6d362601b6040386ef (diff) | |
download | xrdp-proprietary-4b87548b71566e066a3186c5e0258cfd4a1fedf1.tar.gz xrdp-proprietary-4b87548b71566e066a3186c5e0258cfd4a1fedf1.zip |
Use g_create_path instead of g_create_dir
Rename g_mk_temp_dir to g_mk_socket_path
Diffstat (limited to 'sesman/env.c')
-rw-r--r-- | sesman/env.c | 4 |
1 files changed, 2 insertions, 2 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) { |