summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-02-11 13:56:27 -0800
committerJay Sorg <jay.sorg@gmail.com>2012-02-11 13:56:27 -0800
commitd8f9e8310dac362bb9578763d1024178f94f4ecc (patch)
tree46fe14ad3caed79b4656ff519efaac5188dcaa96 /sesman
parenta866b7b3306dd20e0836de50cd40f94456fcd560 (diff)
downloadxrdp-proprietary-d8f9e8310dac362bb9578763d1024178f94f4ecc.tar.gz
xrdp-proprietary-d8f9e8310dac362bb9578763d1024178f94f4ecc.zip
move temp files from /tmp to /tmp/.xrdp
Diffstat (limited to 'sesman')
-rw-r--r--sesman/chansrv/chansrv.c2
-rw-r--r--sesman/sessvc/sessvc.c4
-rw-r--r--sesman/tools/dis.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c
index 77fbcd50..f2ca961d 100644
--- a/sesman/chansrv/chansrv.c
+++ b/sesman/chansrv/chansrv.c
@@ -411,7 +411,7 @@ setup_listen(void)
if (g_use_unix_socket)
{
g_lis_trans = trans_create(2, 8192, 8192);
- g_snprintf(port, 255, "/tmp/xrdp_chansrv_socket_%d", 7200 + g_display_num);
+ g_snprintf(port, 255, "/tmp/.xrdp/xrdp_chansrv_socket_%d", 7200 + g_display_num);
}
else
{
diff --git a/sesman/sessvc/sessvc.c b/sesman/sessvc/sessvc.c
index fe268abc..088f4f51 100644
--- a/sesman/sessvc/sessvc.c
+++ b/sesman/sessvc/sessvc.c
@@ -56,12 +56,12 @@ chansrv_cleanup(int pid)
{
char text[256];
- g_snprintf(text, 255, "/tmp/xrdp_chansrv_%8.8x_main_term", pid);
+ g_snprintf(text, 255, "/tmp/.xrdp/xrdp_chansrv_%8.8x_main_term", pid);
if (g_file_exist(text))
{
g_file_delete(text);
}
- g_snprintf(text, 255, "/tmp/xrdp_chansrv_%8.8x_thread_done", pid);
+ g_snprintf(text, 255, "/tmp/.xrdp/xrdp_chansrv_%8.8x_thread_done", pid);
if (g_file_exist(text))
{
g_file_delete(text);
diff --git a/sesman/tools/dis.c b/sesman/tools/dis.c
index 4a1ef78c..0dbc74d8 100644
--- a/sesman/tools/dis.c
+++ b/sesman/tools/dis.c
@@ -49,7 +49,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_disconnect_display_%d", dis);
+ sprintf(sa.sun_path, "/tmp/.xrdp/xrdp_disconnect_display_%d", dis);
if (access(sa.sun_path, F_OK) != 0)
{
printf("not in an xrdp session\n");