From 7b0fc5433e67b9fae42776d2cd8a386aa9f4bc10 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 30 Mar 1997 10:56:38 +0000 Subject: [PATCH] don't lookup rsh(1) at bogus pathnames Submitted by: joerg via old gnu/usr.bin/cpio v2.3 --- contrib/cpio/rtapelib.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/contrib/cpio/rtapelib.c b/contrib/cpio/rtapelib.c index eece76ffcd0f..6550a6cd5bd4 100644 --- a/contrib/cpio/rtapelib.c +++ b/contrib/cpio/rtapelib.c @@ -372,29 +372,13 @@ __rmt_open (path, oflag, mode, bias) if (*login) { - execl ("/usr/ucb/rsh", "rsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/remsh", "remsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/rsh", "rsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bsd/rsh", "rsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/nsh", "nsh", system, "-l", login, + execl ("/usr/bin/rsh", "rsh", "-l", login, system, "/etc/rmt", (char *) 0); } else { - execl ("/usr/ucb/rsh", "rsh", system, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/remsh", "remsh", system, - "/etc/rmt", (char *) 0); execl ("/usr/bin/rsh", "rsh", system, "/etc/rmt", (char *) 0); - execl ("/usr/bsd/rsh", "rsh", system, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/nsh", "nsh", system, - "/etc/rmt", (char *) 0); } /* Bad problems if we get here. */