From: Ritesh Raj Sarraf Date: Thu, 20 Sep 2018 06:26:38 +0000 (+0530) Subject: um: Don't hardcode path as it is architecture dependent X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9ca19a3a3e2482916c475b90f3d7fa2a03d8e5ed;p=linux.git um: Don't hardcode path as it is architecture dependent The current code fails to run on amd64 because of hardcoded reference to i386 Signed-off-by: Ritesh Raj Sarraf Signed-off-by: Richard Weinberger --- diff --git a/arch/um/drivers/port_user.c b/arch/um/drivers/port_user.c index 9a8e1b64c22e3..5f56d11b886fc 100644 --- a/arch/um/drivers/port_user.c +++ b/arch/um/drivers/port_user.c @@ -168,7 +168,7 @@ int port_connection(int fd, int *socket, int *pid_out) { int new, err; char *argv[] = { "/usr/sbin/in.telnetd", "-L", - "/usr/lib/uml/port-helper", NULL }; + OS_LIB_PATH "/uml/port-helper", NULL }; struct port_pre_exec_data data; new = accept(fd, NULL, 0);