sesman: make sure socket directory present
before try to create a domain socket. Originally proposed by Ian Geiser (geiseri).
This commit is contained in:
parent
8d5010a202
commit
6f8eacd72b
@ -417,6 +417,9 @@ main(int argc, char **argv)
|
|||||||
log_message(LOG_LEVEL_INFO,
|
log_message(LOG_LEVEL_INFO,
|
||||||
"starting xrdp-sesman with pid %d", g_pid);
|
"starting xrdp-sesman with pid %d", g_pid);
|
||||||
|
|
||||||
|
/* make sure the socket directory exists */
|
||||||
|
g_mk_temp_dir("xrdp-sesman");
|
||||||
|
|
||||||
/* make sure the /tmp/.X11-unix directory exist */
|
/* make sure the /tmp/.X11-unix directory exist */
|
||||||
if (!g_directory_exist("/tmp/.X11-unix"))
|
if (!g_directory_exist("/tmp/.X11-unix"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user