summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-09-30 04:10:27 +0000
committerderaadt <deraadt@openbsd.org>1999-09-30 04:10:27 +0000
commit153effca9947f578430e82fdc52a1dab2da96166 (patch)
tree9a2cdd603babcbf19d7a6374a58270c7485a7a2a /usr.bin/ssh/ssh.c
parentMake sure 'model' and 'step' are initialized, even for non-cpuid chips. (diff)
downloadwireguard-openbsd-153effca9947f578430e82fdc52a1dab2da96166.tar.xz
wireguard-openbsd-153effca9947f578430e82fdc52a1dab2da96166.zip
rely on paths.h more
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 043c3ff94ac..65a9a3e1af2 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -18,7 +18,7 @@ Modified to work with SSL by Niels Provos <provos@citi.umich.edu> in Canada.
*/
#include "includes.h"
-RCSID("$Id: ssh.c,v 1.12 1999/09/29 21:15:54 deraadt Exp $");
+RCSID("$Id: ssh.c,v 1.13 1999/09/30 04:10:28 deraadt Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -131,14 +131,13 @@ usage()
void
rsh_connect(char *host, char *user, Buffer *command)
{
-#ifdef RSH_PATH
char *args[10];
int i;
log("Using rsh. WARNING: Connection will not be encrypted.");
/* Build argument list for rsh. */
i = 0;
- args[i++] = RSH_PATH;
+ args[i++] = _PATH_RSH;
args[i++] = host; /* may have to come after user on some systems */
if (user)
{
@@ -161,12 +160,9 @@ rsh_connect(char *host, char *user, Buffer *command)
}
fprintf(stderr, "\n");
}
- execv(RSH_PATH, args);
- perror(RSH_PATH);
+ execv(_PATH_RSH, args);
+ perror(_PATH_RSH);
exit(1);
-#else /* RSH_PATH */
- fatal("Rsh not available.");
-#endif /* RSH_PATH */
}
/* Main program for the ssh client. */