Commit 6e8f4b70 authored by Glenn Washburn's avatar Glenn Washburn Committed by Richard Weinberger

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: default avatarGlenn Washburn <development@efficientek.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 6580c5c1
...@@ -167,7 +167,7 @@ static void port_pre_exec(void *arg) ...@@ -167,7 +167,7 @@ static void port_pre_exec(void *arg)
int port_connection(int fd, int *socket, int *pid_out) int port_connection(int fd, int *socket, int *pid_out)
{ {
int new, err; int new, err;
char *argv[] = { "/usr/sbin/in.telnetd", "-L", char *argv[] = { "in.telnetd", "-L",
OS_LIB_PATH "/uml/port-helper", NULL }; OS_LIB_PATH "/uml/port-helper", NULL };
struct port_pre_exec_data data; struct port_pre_exec_data data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment