diff --git a/sesman/libsesman/Makefile.am b/sesman/libsesman/Makefile.am index 7536cfeb..7ef44455 100644 --- a/sesman/libsesman/Makefile.am +++ b/sesman/libsesman/Makefile.am @@ -4,6 +4,7 @@ AM_CPPFLAGS = \ -DXRDP_PAMCONF_PATH=\"${pamconfdir}\" \ -DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \ + -DXRDP_SOCKET_ROOT_PATH=\"${socketdir}\" \ -I$(top_srcdir)/libipm \ -I$(top_srcdir)/common # -DXRDP_SBIN_PATH=\"${sbindir}\" \ diff --git a/sesman/libsesman/sesman_config.h b/sesman/libsesman/sesman_config.h index 5f403fa1..aa8d43dc 100644 --- a/sesman/libsesman/sesman_config.h +++ b/sesman/libsesman/sesman_config.h @@ -31,6 +31,8 @@ #include "list.h" #include "log.h" +#include "xrdp_sockets.h" + enum SESMAN_CFG_SESS_POLICY_BITS { /* If these two are set, they override everything else */ @@ -182,7 +184,7 @@ struct config_sesman * @var listen_port * @brief Listening port */ - char listen_port[256]; + char listen_port[XRDP_SOCKETS_MAXPATH]; /** * @var enable_user_wm * @brief Flag that enables user specific wm