summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_listen.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/xrdp_listen.c')
-rw-r--r--xrdp/xrdp_listen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c
index e6443bc9..0ab56148 100644
--- a/xrdp/xrdp_listen.c
+++ b/xrdp/xrdp_listen.c
@@ -372,6 +372,10 @@ xrdp_listen_main_loop(struct xrdp_listen *self)
/* Create socket */
error = trans_listen_address(self->listen_trans, port, address);
+ if (port[0] == '/')
+ {
+ g_chmod_hex(port, 0x0666);
+ }
if (error == 0)
{