diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2017-07-12 15:48:28 +0900 |
---|---|---|
committer | metalefty <meta@vmeta.jp> | 2017-07-13 13:41:26 +0900 |
commit | 6f8eacd72b09369be0ae728466b5dc8a227f0c5b (patch) | |
tree | c07f206340fbb08f6db036bba8f56b9ceb95db7f | |
parent | 8d5010a20270f581b774c97dd2186a5814740cf0 (diff) | |
download | xrdp-proprietary-6f8eacd72b09369be0ae728466b5dc8a227f0c5b.tar.gz xrdp-proprietary-6f8eacd72b09369be0ae728466b5dc8a227f0c5b.zip |
sesman: make sure socket directory present
before try to create a domain socket.
Originally proposed by Ian Geiser (geiseri).
-rw-r--r-- | sesman/sesman.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c index 7a25482a..29037f0c 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -417,6 +417,9 @@ main(int argc, char **argv) log_message(LOG_LEVEL_INFO, "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 */ if (!g_directory_exist("/tmp/.X11-unix")) { |