aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorGlenn Washburn <development@efficientek.com>2022-03-03 01:53:30 -0600
committerRichard Weinberger <richard@nod.at>2022-03-11 10:55:16 +0100
commit6e8f4b70127fa852020718e636b3ea53f6e17d88 (patch)
treefb515f7182243bb12916466ecd0681391f76914e /arch/um
parentum: clang: Strip out -mno-global-merge from USER_CFLAGS (diff)
downloadlinux-dev-6e8f4b70127fa852020718e636b3ea53f6e17d88.tar.xz
linux-dev-6e8f4b70127fa852020718e636b3ea53f6e17d88.zip
um: port_user: Search for in.telnetd in PATH
This allows in.telnetd to be run from non-standard installation locations and is especially useful when running a UML instance as an unprivileged user on a system where the administrator has not installed the in.telnetd binary. Signed-off-by: Glenn Washburn <development@efficientek.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/port_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/port_user.c b/arch/um/drivers/port_user.c
index 5b5b64cb1071..0625aa42041d 100644
--- a/arch/um/drivers/port_user.c
+++ b/arch/um/drivers/port_user.c
@@ -167,7 +167,7 @@ static void port_pre_exec(void *arg)
int port_connection(int fd, int *socket, int *pid_out)
{
int new, err;
- char *argv[] = { "/usr/sbin/in.telnetd", "-L",
+ char *argv[] = { "in.telnetd", "-L",
OS_LIB_PATH "/uml/port-helper", NULL };
struct port_pre_exec_data data;