summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cpio
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-12-08 14:19:50 +0000
committerjoerg <joerg@FreeBSD.org>1996-12-08 14:19:50 +0000
commit328d3170fdcd46938b3e64e8dff43996f2b5d4d1 (patch)
treeb317b0bf2281b0a8cd7b99f626cc9bf847a22f70 /gnu/usr.bin/cpio
parentbb05c5e854495998e913427c2e232650bb30b6ba (diff)
downloadFreeBSD-src-328d3170fdcd46938b3e64e8dff43996f2b5d4d1.zip
FreeBSD-src-328d3170fdcd46938b3e64e8dff43996f2b5d4d1.tar.gz
Merge tar's version of rtapelib, namely the changes as of rev 1.2.
Both files used to be identical previously, so they are again now.
Diffstat (limited to 'gnu/usr.bin/cpio')
-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 eece76f..0c23b06 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);
}
OpenPOWER on IntegriCloud