summaryrefslogtreecommitdiffstats
path: root/sesman/tools/dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/tools/dis.c')
-rw-r--r--sesman/tools/dis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sesman/tools/dis.c b/sesman/tools/dis.c
index 086dc1b9..61f2bea2 100644
--- a/sesman/tools/dis.c
+++ b/sesman/tools/dis.c
@@ -27,6 +27,8 @@
#include <sys/socket.h>
#include <sys/un.h>
+#include "file_loc.h"
+
int main(int argc, char **argv)
{
int sck;
@@ -54,7 +56,7 @@ int main(int argc, char **argv)
dis = strtol(display + 1, &p, 10);
memset(&sa, 0, sizeof(sa));
sa.sun_family = AF_UNIX;
- sprintf(sa.sun_path, "/tmp/.xrdp/xrdp_disconnect_display_%d", dis);
+ sprintf(sa.sun_path, XRDP_DISCONNECT_STR, dis);
if (access(sa.sun_path, F_OK) != 0)
{