summaryrefslogtreecommitdiffstats
path: root/sesman/sesman.c
diff options
context:
space:
mode:
authorIdan Freiberg <speidy@gmail.com>2014-07-23 16:44:59 +0300
committerIdan Freiberg <speidy@gmail.com>2014-07-23 16:44:59 +0300
commit16929efb059e1e29c826388e5d57be82014d241b (patch)
treef8661e7495a82a4a73e68825f1a1ff44a9e100f1 /sesman/sesman.c
parent0795400fe260652f6ae3788325e2a4c8ee05fe3a (diff)
parent0c63a8feb3c52de98a5da51a0a0f743450c34645 (diff)
downloadxrdp-proprietary-16929efb059e1e29c826388e5d57be82014d241b.tar.gz
xrdp-proprietary-16929efb059e1e29c826388e5d57be82014d241b.zip
Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into
devel Conflicts: libxrdp/xrdp_sec.c
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r--sesman/sesman.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 83db5961..964bc740 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -308,9 +308,17 @@ main(int argc, char **argv)
g_file_close(1);
g_file_close(2);
- g_file_open("/dev/null");
- g_file_open("/dev/null");
- g_file_open("/dev/null");
+ if (g_file_open("/dev/null") < 0)
+ {
+ }
+
+ if (g_file_open("/dev/null") < 0)
+ {
+ }
+
+ if (g_file_open("/dev/null") < 0)
+ {
+ }
}
/* initializing locks */
@@ -361,7 +369,11 @@ main(int argc, char **argv)
/* make sure the /tmp/.X11-unix directory exist */
if (!g_directory_exist("/tmp/.X11-unix"))
{
- g_create_dir("/tmp/.X11-unix");
+ if (!g_create_dir("/tmp/.X11-unix"))
+ {
+ log_message(LOG_LEVEL_ERROR,
+ "sesman.c: error creating dir /tmp/.X11-unix");
+ }
g_chmod_hex("/tmp/.X11-unix", 0x1777);
}