Skip to content

Commit

Permalink
um: port_user: Search for in.telnetd in PATH
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glenn Washburn authored and Richard Weinberger committed Mar 11, 2022
1 parent 6580c5c commit 6e8f4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/port_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6e8f4b7

Please sign in to comment.