xrdp/sesman/sesexec
matt335672 8cea9b03ab Replace g_strncpy() with str2memcpy()
g_strncpy() is the wrong function for copying strings in struct utmp[x]
as it always terminates strings.

strncpy() itself would be a good choice, but is marked by many compilers
as being unsafe to use.

str2memcpy() is taken from util-linux, and is exactly right for this
application.
2024-02-21 09:24:48 +00:00
..
eicp_server.c New files for sesexec 2023-05-02 11:55:23 +01:00
eicp_server.h New files for sesexec 2023-05-02 11:55:23 +01:00
env.c Parameterise the sockdir with the UID of the user 2023-10-23 18:14:46 +01:00
env.h Move files from sesman to sesexec directory 2023-05-02 11:55:22 +01:00
ercp_server.c New files for sesexec 2023-05-02 11:55:23 +01:00
ercp_server.h New files for sesexec 2023-05-02 11:55:23 +01:00
login_info.c Parameterise the sockdir with the UID of the user 2023-10-23 18:14:46 +01:00
login_info.h New files for sesexec 2023-05-02 11:55:23 +01:00
Makefile.am Add --enable-utmp to configure.ac 2024-02-21 09:24:48 +00:00
sesexec.c Rename struct exit_status in os_calls 2024-02-21 09:24:48 +00:00
sesexec.h New files for sesexec 2023-05-02 11:55:23 +01:00
session.c Allow some utmpx fields to be optional 2024-02-21 09:24:48 +00:00
session.h Rename struct exit_status in os_calls 2024-02-21 09:24:48 +00:00
sessionrecord.c Replace g_strncpy() with str2memcpy() 2024-02-21 09:24:48 +00:00
sessionrecord.h Allow some utmpx fields to be optional 2024-02-21 09:24:48 +00:00
xauth.c Move files from sesman to sesexec directory 2023-05-02 11:55:22 +01:00
xauth.h Move files from sesman to sesexec directory 2023-05-02 11:55:22 +01:00
xwait.c Rename struct exit_status in os_calls 2024-02-21 09:24:48 +00:00
xwait.h Move files from sesman to sesexec directory 2023-05-02 11:55:22 +01:00