summaryrefslogtreecommitdiffstats
path: root/xrdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2009-08-19 07:27:35 +0000
committerjsorg71 <jsorg71>2009-08-19 07:27:35 +0000
commitdf8527b2517dd3fc6794666a859d2453951d03ad (patch)
tree27afe2746450f919dba1a7682e3469eef9596a88 /xrdp
parent3fd42d808adf82bd910c3e51b4dc89b3d35107fa (diff)
downloadxrdp-proprietary-df8527b2517dd3fc6794666a859d2453951d03ad.tar.gz
xrdp-proprietary-df8527b2517dd3fc6794666a859d2453951d03ad.zip
pass domain, program, and directory to sesman and use directory and program
Diffstat (limited to 'xrdp')
-rw-r--r--xrdp/xrdp_mm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index e6c4e4d2..bfdfc4f0 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -249,6 +249,18 @@ xrdp_mm_send_login(struct xrdp_mm* self)
out_uint16_be(s, self->wm->screen->width);
out_uint16_be(s, self->wm->screen->height);
out_uint16_be(s, self->wm->screen->bpp);
+ /* send domain */
+ index = g_strlen(self->wm->client_info->domain);
+ out_uint16_be(s, index);
+ out_uint8a(s, self->wm->client_info->domain, index);
+ /* send program / shell */
+ index = g_strlen(self->wm->client_info->program);
+ out_uint16_be(s, index);
+ out_uint8a(s, self->wm->client_info->program, index);
+ /* send directory */
+ index = g_strlen(self->wm->client_info->directory);
+ out_uint16_be(s, index);
+ out_uint8a(s, self->wm->client_info->directory, index);
s_mark_end(s);
s_pop_layer(s, channel_hdr);
out_uint32_be(s, 0); /* version */