summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorRitesh Raj Sarraf <rrs@debian.org>2018-09-20 11:56:38 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-16 19:41:28 +0200
commitdb1b4aa651df06e90efc2424d3a83bcf02fe93a5 (patch)
tree6711d0f37317fce787c5694429ab6d8431a25f3c /arch/um
parent85f347944a6b5235a202aee717a765e5d60dbb24 (diff)
downloadlinux-stable-db1b4aa651df06e90efc2424d3a83bcf02fe93a5.tar.gz
linux-stable-db1b4aa651df06e90efc2424d3a83bcf02fe93a5.tar.bz2
linux-stable-db1b4aa651df06e90efc2424d3a83bcf02fe93a5.zip
um: Don't hardcode path as it is architecture dependent
commit 9ca19a3a3e2482916c475b90f3d7fa2a03d8e5ed upstream. The current code fails to run on amd64 because of hardcoded reference to i386 Signed-off-by: Ritesh Raj Sarraf <rrs@researchut.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 9a8e1b64c22e..5f56d11b886f 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);