From d820d937c424d22cbb933670e776ed8dea03ea85 Mon Sep 17 00:00:00 2001 From: markus Date: Sat, 10 Feb 2001 01:46:28 +0000 Subject: remove mapping of argv[0] -> hostname --- usr.bin/ssh/ssh.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'usr.bin/ssh/ssh.c') 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 #include @@ -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) -- cgit v1.2.3-59-g8ed1b