um: port_user: Search for in.telnetd in PATH
authorGlenn Washburn <development@efficientek.com>
Thu, 3 Mar 2022 07:53:30 +0000 (01:53 -0600)
committerRichard Weinberger <richard@nod.at>
Fri, 11 Mar 2022 09:55:16 +0000 (10:55 +0100)
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>
arch/um/drivers/port_user.c

index 5b5b64c..0625aa4 100644 (file)
@@ -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;