summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-12-08 14:21:23 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-12-08 14:21:23 +0000
commit596640ff0a872e71ac6b57fc12c15ae3b85c5ac4 (patch)
treeeddb051297b0defb661de9e8809a1b57d5f946fb /gnu/usr.bin
parentd68500f3f1c5daf6d320ae4a18cd7cbc42e7d23a (diff)
Notes
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cpio/rtapelib.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/gnu/usr.bin/cpio/rtapelib.c b/gnu/usr.bin/cpio/rtapelib.c
index eece76ffcd0f..0c23b0670dad 100644
--- a/gnu/usr.bin/cpio/rtapelib.c
+++ b/gnu/usr.bin/cpio/rtapelib.c
@@ -372,28 +372,16 @@ __rmt_open (path, oflag, mode, bias)
if (*login)
{
- execl ("/usr/ucb/rsh", "rsh", system, "-l", login,
+ execl ("/usr/bin/rsh", "rsh", "-l", login, system,
"/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,
+ execlp ("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,
+ execlp ("rsh", "rsh", system,
"/etc/rmt", (char *) 0);
}