diff options
author | obrien <obrien@FreeBSD.org> | 1997-03-30 10:56:38 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1997-03-30 10:56:38 +0000 |
commit | bee6a370f38e2ff48d995b4f49658bf14ff7b89c (patch) | |
tree | 5f13925c72e70472584bc9af5ed884090058e5f9 /contrib/cpio | |
parent | 843afab4134c62fe1163235f7493f95300ddff42 (diff) | |
download | FreeBSD-src-bee6a370f38e2ff48d995b4f49658bf14ff7b89c.zip FreeBSD-src-bee6a370f38e2ff48d995b4f49658bf14ff7b89c.tar.gz |
don't lookup rsh(1) at bogus pathnames
Submitted by: joerg via old gnu/usr.bin/cpio v2.3
Diffstat (limited to 'contrib/cpio')
-rw-r--r-- | contrib/cpio/rtapelib.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/contrib/cpio/rtapelib.c b/contrib/cpio/rtapelib.c index eece76f..6550a6c 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. */ |