Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #64087

[PATCH] um: Don't hardcode path as it is architecture dependent

From Ritesh Raj Sarraf <rrs@debian.org>
Newsgroups linux.debian.kernel
Subject [PATCH] um: Don't hardcode path as it is architecture dependent
Date 2019-05-14 12:30 +0200
Message-ID <xXCR3-7gJ-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Dear Stable Team,
Request for inclusion into the stable branches of Linux. This change
went into 4.20 but 4.19 is the LTS release that many of the Linux
Vendors are rebasing on. Hence, it'd be nice to see this part of the LTS
releases, at least 4.19.


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>
---
 arch/um/drivers/port_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.20.1

Back to linux.debian.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] um: Don't hardcode path as it is architecture dependent Ritesh Raj Sarraf <rrs@debian.org> - 2019-05-14 12:30 +0200
  Re: [PATCH] um: Don't hardcode path as it is architecture dependent Greg KH <gregkh@linuxfoundation.org> - 2019-05-14 12:50 +0200
    Re: [PATCH] um: Don't hardcode path as it is architecture dependent Ritesh Raj Sarraf <rrs@debian.org> - 2019-05-14 13:10 +0200
      Re: [PATCH] um: Don't hardcode path as it is architecture dependent Greg KH <gregkh@linuxfoundation.org> - 2019-05-14 14:40 +0200

csiph-web