Date: Sat, 16 Sep 2000 05:52:25 +0900 From: Hajimu UMEMOTO <ume@mahoroba.org> To: will@physics.purdue.edu Cc: arch@FreeBSD.org Subject: Re: Rsh/Rlogin/Rcmd & friends Message-ID: <20000916055225C.ume@mahoroba.org> In-Reply-To: <20000915143515.N40658@radon.gryphonsoft.com> References: <20000915143515.N40658@radon.gryphonsoft.com>
index | next in thread | previous in thread | raw e-mail
>>>>> On Fri, 15 Sep 2000 14:35:15 -0500
>>>>> Will Andrews <will@physics.purdue.edu> said:
will> Ok people. I want a reason why we shouldn't move rsh/rlogin/rcmd out of
will> the base system and into ports, now that we can support SSH connections
will> out of the box.
Some programs call rsh. For example, GNU tar calls rsh.
How about this patch. I'm using it for a long time.
--- gnu/usr.bin/tar/rtapelib.c.orig Mon Nov 4 19:07:44 1996
+++ gnu/usr.bin/tar/rtapelib.c Tue Jul 27 15:22:32 1999
@@ -372,6 +372,8 @@
if (*login)
{
+ execl ("/usr/bin/ssh", "ssh", "-l", login, system,
+ "/etc/rmt", (char *) 0);
execl ("/usr/bin/rsh", "rsh", "-l", login, system,
"/etc/rmt", (char *) 0);
execlp ("rsh", "rsh", "-l", login, system,
@@ -379,6 +381,8 @@
}
else
{
+ execl ("/usr/bin/ssh", "ssh", system,
+ "/etc/rmt", (char *) 0);
execl ("/usr/bin/rsh", "rsh", system,
"/etc/rmt", (char *) 0);
execlp ("rsh", "rsh", system,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@FreeBSD.org
http://www.imasy.org/~ume/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000916055225C.ume>
