diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: ssh.c,v 1.93 2001/02/08 19:30:52 itojun Exp $"); | 42 | RCSID("$OpenBSD: ssh.c,v 1.94 2001/02/10 01:46:28 markus Exp $"); |
43 | 43 | ||
44 | #include <openssl/evp.h> | 44 | #include <openssl/evp.h> |
45 | #include <openssl/err.h> | 45 | #include <openssl/err.h> |
@@ -288,21 +288,6 @@ main(int ac, char **av) | |||
288 | /* Parse command-line arguments. */ | 288 | /* Parse command-line arguments. */ |
289 | host = NULL; | 289 | host = NULL; |
290 | 290 | ||
291 | /* If program name is not one of the standard names, use it as host name. */ | ||
292 | cp = __progname; | ||
293 | #ifdef HAVE_CYGWIN | ||
294 | if (strcasecmp(cp, "rsh") && strcasecmp(cp, "ssh") && | ||
295 | strcasecmp(cp, "rlogin") && strcasecmp(cp, "slogin") && | ||
296 | strcasecmp(cp, "remsh") && | ||
297 | strcasecmp(cp, "rsh.exe") && strcasecmp(cp, "ssh.exe") && | ||
298 | strcasecmp(cp, "rlogin.exe") && strcasecmp(cp, "slogin.exe") && | ||
299 | strcasecmp(cp, "remsh.exe")) | ||
300 | #else | ||
301 | if (strcmp(cp, "rsh") && strcmp(cp, "ssh") && strcmp(cp, "rlogin") && | ||
302 | strcmp(cp, "slogin") && strcmp(cp, "remsh")) | ||
303 | #endif | ||
304 | host = cp; | ||
305 | |||
306 | for (optind = 1; optind < ac; optind++) { | 291 | for (optind = 1; optind < ac; optind++) { |
307 | if (av[optind][0] != '-') { | 292 | if (av[optind][0] != '-') { |
308 | if (host) | 293 | if (host) |