don't lookup rsh(1) at bogus pathnames
Submitted by: joerg via old gnu/usr.bin/cpio v2.3
This commit is contained in:
parent
88fd8e23ef
commit
7b0fc5433e
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user