xrdp/sesman
Ben Cohen c7d08bd9e7 xrdp-sesadmin: fix error when there are no sessions
Test case:  On a system running xrdp with no sessions running run:

  xrdp-sesadmin -u=<user> -p=<password> -c=list

Expected result: "No sessions." (ignoring debug output)
Observed result: "Error getting session list."

In the SCP_SERVER_STATE_MNG_LISTREQ case in scp_v1_mng_process() if
there are no sessions it ends the scp session, which causes an error in
the client.  In commit 0017081d the client was changed to report errors,
giving the result above.

Fix by calling scp_v1s_mng_list_sessions() from scp_v1_mng_process()
even when there are no sessions, and if so sending a packet with a count
of zero so that the client gets what it expects.
2017-07-06 13:40:25 +09:00
..
chansrv chansrv: include display number in chansrv log filename 2017-07-06 12:36:47 +09:00
libscp xrdp-sesadmin: fix error when there are no sessions 2017-07-06 13:40:25 +09:00
tools Rename file_loc.h to xrdp_sockets.h, install it 2017-03-28 00:59:16 -07:00
access.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
access.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
auth.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
config.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
config.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
Doxyfile preparing sources to add new sesman control protocol 2006-05-26 13:10:14 +00:00
env.c sesman: pass xrdp socket path to user session 2017-05-16 10:41:06 +09:00
env.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
Makefile.am sesman: install empty reconnectwm.sh as a template 2017-06-20 13:40:05 +09:00
reconnectwm.sh sesman: install empty reconnectwm.sh as a template 2017-06-20 13:40:05 +09:00
scp_v0.c sesman: move auth/pam calls to main process 2017-03-21 21:56:28 -07:00
scp_v0.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
scp_v1_mng.c xrdp-sesadmin: fix error when there are no sessions 2017-07-06 13:40:25 +09:00
scp_v1_mng.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
scp_v1.c sesman: move auth/pam calls to main process 2017-03-21 21:56:28 -07:00
scp_v1.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
scp.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
scp.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
sesman.c sesman: exit with failure status if listen failed 2017-06-20 14:29:02 +09:00
sesman.h Rename file_loc.h to xrdp_sockets.h, install it 2017-03-28 00:59:16 -07:00
sesman.ini docs: remove IdleTimeLimit until it is actually implemented 2017-01-31 05:07:06 -03:00
session.c Rename file_loc.h to xrdp_sockets.h, install it 2017-03-28 00:59:16 -07:00
session.h sesman: remove sessvc, one less process to manage 2017-03-19 17:16:36 -07:00
sig.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
sig.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
startwm.sh startwm.sh: do not call pseudo shell code for /etc/X11/xdm/Xsession 2017-05-09 16:26:38 +09:00
verify_user_bsd.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
verify_user_kerberos.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
verify_user_pam_userpass.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
verify_user_pam.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
verify_user.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
xauth.c Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00
xauth.h Eliminate APP_CC and DEFAULT_CC 2017-03-14 00:21:48 -07:00