From: "Jean-Yves Didier" <jydidier@free.fr>
To: Jeff Dike <jdike@karaya.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] User-mode Linux: Port driver host system independence strengthened.
Date: Sun, 20 May 2007 15:52:37 +0200 [thread overview]
Message-ID: <465052A5.9020602@free.fr> (raw)
Port driver no longer need a telnet daemon and port-helper at fixed
locations on the host system. Fixed locations are still checked. If
detection failed, it will look for links or programs named uml.telnetd
and port-helper in user pathes list.
Signed-off-by: Jean-Yves Didier <jydidier@free.fr>
---
--- linux-2.6.21.1/arch/um/drivers/port_user.c.orig 2007-05-20
13:57:31.000000000 +0200
+++ linux-2.6.21.1/arch/um/drivers/port_user.c 2007-05-20
13:59:23.000000000 +0200
@@ -177,6 +177,12 @@ int port_connection(int fd, int *socket,
"/usr/lib/uml/port-helper", NULL };
struct port_pre_exec_data data;
+ if(os_access(argv[0], OS_ACC_X_OK) < 0)
+ argv[0] = "uml.telnetd";
+
+ if(os_access(argv[2], OS_ACC_X_OK) < 0)
+ argv[2] = "port-helper";
+
new = os_accept_connection(fd);
if(new < 0)
return new;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next reply other threads:[~2007-05-20 13:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-20 13:52 Jean-Yves Didier [this message]
2007-05-21 20:56 ` [uml-devel] [PATCH] User-mode Linux: Port driver host system independence strengthened Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=465052A5.9020602@free.fr \
--to=jydidier@free.fr \
--cc=jdike@karaya.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox