diff options
author | jsorg71 <jsorg71> | 2006-10-27 04:22:29 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-10-27 04:22:29 +0000 |
commit | fe292cec2017ce10e4fdd42646cc4a2f8c8a19a6 (patch) | |
tree | 6892f59e3a3a0509a34efb475bb764d718bb6b8f | |
parent | bd252214a3b0cfe3ddcfb09c2280e5a621789656 (diff) | |
download | xrdp-proprietary-fe292cec2017ce10e4fdd42646cc4a2f8c8a19a6.tar.gz xrdp-proprietary-fe292cec2017ce10e4fdd42646cc4a2f8c8a19a6.zip |
make sure /tmp/.X11-unix directoy exist
-rw-r--r-- | sesman/sesman.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c index c02b5895..9354e110 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -263,6 +263,13 @@ main(int argc, char** argv) /* start program main loop */ log_message(LOG_LEVEL_ALWAYS, "starting sesman with pid %d", g_pid); + /* make sure the /tmp/.X11-unix directory exist */ + if (!g_directory_exist("/tmp/.X11-unix")) + { + g_create_dir("/tmp/.X11-unix"); + g_chmod("/tmp/.X11-unix", 0x1777); + } + sesman_main_loop(); if (!daemon) |