From ae6b1ed8a8c83dbe07c49f063788eaf8177be905 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Mon, 23 Dec 2024 11:05:39 +0000 Subject: [PATCH] xrdp-droppriv erroneous includes xrdp-droppriv.c is erroneously including os_calls.c rather than os_calls.h This leads to a link failure on Ubuntu 20.04:- /usr/bin/ld: xrdp-droppriv.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5' The error does not happen with later glibc versions, as libdl is included in libc for these versions. (cherry picked from commit b914d3e997ee70544db5fd2e28509bbcae32ddc6) --- tools/chkpriv/xrdp-droppriv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/chkpriv/xrdp-droppriv.c b/tools/chkpriv/xrdp-droppriv.c index 185f575b10..13f6dd3dfd 100644 --- a/tools/chkpriv/xrdp-droppriv.c +++ b/tools/chkpriv/xrdp-droppriv.c @@ -23,7 +23,7 @@ #include "config_ac.h" #endif -#include "os_calls.c" +#include "os_calls.h" #include "log.h" int main(int argc, char *argv[])