summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-10 22:11:13 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-10 22:11:13 +0000
commit8fd10b0f1346e21286f026adde95b553bba84752 (patch)
tree10d10b157c8ea75ca4624efeac812ef2ee4e3245
parent5ab6ae1282286f71b18e6fc5737c908a4a5ddf70 (diff)
- markus@cvs.openbsd.org 2001/02/10 1:46:28
[ssh.c] remove mapping of argv[0] -> hostname
-rw-r--r--ChangeLog5
-rw-r--r--ssh.c17
2 files changed, 5 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e1aadb9d..742d969b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,9 @@
24 - djm@cvs.openbsd.org 2001/02/10 0:45:52 24 - djm@cvs.openbsd.org 2001/02/10 0:45:52
25 [scp.1] 25 [scp.1]
26 Mention that you can quote pathnames with spaces in them 26 Mention that you can quote pathnames with spaces in them
27 - markus@cvs.openbsd.org 2001/02/10 1:46:28
28 [ssh.c]
29 remove mapping of argv[0] -> hostname
27 - (bal) Minor correction to sftp-client.c I made. Should return 'status' 30 - (bal) Minor correction to sftp-client.c I made. Should return 'status'
28 instead of '0' (from the OpenBSD tree) 31 instead of '0' (from the OpenBSD tree)
29 - (bal) Synced ssh.1 w/ OpenBSD 32 - (bal) Synced ssh.1 w/ OpenBSD
@@ -3810,4 +3813,4 @@
3810 - Wrote replacements for strlcpy and mkdtemp 3813 - Wrote replacements for strlcpy and mkdtemp
3811 - Released 1.0pre1 3814 - Released 1.0pre1
3812 3815
3813$Id: ChangeLog,v 1.721 2001/02/10 22:08:03 mouring Exp $ 3816$Id: ChangeLog,v 1.722 2001/02/10 22:11:13 mouring Exp $
diff --git a/ssh.c b/ssh.c
index ddf28c538..4ca1e7bf8 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.93 2001/02/08 19:30:52 itojun Exp $"); 42RCSID("$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)