defb1bcba4
The move away from the X11 display number has introduced a couple of regressions 1) XDG_SESSION_TYPE is not detected properly. pam_systemd.so contains code to map a PAM_TTY of ':n' to an 'x11' session type. This mapping is no longer done. We could re-introduce this code for X11, but there is no such code to detect a wayland display type. We try to fix this in a forward-looking way by setting XDG_SESSION_TYPE explicity before starting the PAM session. 2) utmp is not being updated correctly. The code for setting ut_id in the utmp[x] structure was setting the same value for all X11 displays, thus preventing utmp from being able to see more than one xrdp user Also, an include is needed for sesman/eicp_process.c on some systems to get access to strlcpy()