diff --git a/x11-packages/xrdp/build.sh b/x11-packages/xrdp/build.sh index 0b3cfc0bc..4df6ab145 100644 --- a/x11-packages/xrdp/build.sh +++ b/x11-packages/xrdp/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="An open source remote desktop protocol (RDP) server" TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=0.9.16 -TERMUX_PKG_REVISION=7 +TERMUX_PKG_REVISION=8 TERMUX_PKG_SRCURL=https://github.com/neutrinolabs/xrdp/releases/download/v${TERMUX_PKG_VERSION}/xrdp-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=72a86bf3bb8ca3a41905bfa84f500ad73cd23615753f34db7e36278a33c19916 TERMUX_PKG_DEPENDS="libandroid-shmem, libcrypt, libice, libsm, libuuid, libx11, libxau, libxcb, libxfixes, libxdmcp, libxrandr, openssl-1.1, procps, tigervnc" diff --git a/x11-packages/xrdp/fix-rfbauth-with-no-passwd-file.patch b/x11-packages/xrdp/fix-rfbauth-with-no-passwd-file.patch new file mode 100644 index 000000000..159431190 --- /dev/null +++ b/x11-packages/xrdp/fix-rfbauth-with-no-passwd-file.patch @@ -0,0 +1,18 @@ +Fixes https://github.com/termux/termux-packages/issues/10220. + +--- a/sesman/session.c ++++ b/sesman/session.c +@@ -768,8 +768,11 @@ + list_add_item(xserver_params, (tintptr)g_strdup(geometry)); + list_add_item(xserver_params, (tintptr)g_strdup("-depth")); + list_add_item(xserver_params, (tintptr)g_strdup(depth)); +- list_add_item(xserver_params, (tintptr)g_strdup("-rfbauth")); +- list_add_item(xserver_params, (tintptr)g_strdup(passwd_file)); ++ if (passwd_file != 0 && *passwd_file != '\0') ++ { ++ list_add_item(xserver_params, (tintptr)g_strdup("-rfbauth")); ++ list_add_item(xserver_params, (tintptr)g_strdup(passwd_file)); ++ } + + g_free(passwd_file); +