summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-02-10 01:46:29 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-02-10 01:46:29 +0000
commitf580711ba98f2ef0c6b7239506420eb2f8a4ace8 (patch)
tree43eb69d6e5a50eb49d8f7af612221b0f975be64d
parent97c8a6d9ff47083a72ada5b74da2c1a83a249fc8 (diff)
remove mapping of argv[0] -> hostname
-rw-r--r--usr.bin/ssh/ssh.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 9f08038638c..5dd9a8bef3f 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -39,7 +39,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.93 2001/02/08 19:30:52 itojun Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.94 2001/02/10 01:46:28 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -275,12 +275,6 @@ main(int ac, char **av)
/* Parse command-line arguments. */
host = NULL;
- /* If program name is not one of the standard names, use it as host name. */
- cp = __progname;
- if (strcmp(cp, "rsh") && strcmp(cp, "ssh") && strcmp(cp, "rlogin") &&
- strcmp(cp, "slogin") && strcmp(cp, "remsh"))
- host = cp;
-
for (optind = 1; optind < ac; optind++) {
if (av[optind][0] != '-') {
if (host)