summaryrefslogtreecommitdiffstats
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2004-06-18 14:21:55 +0200
committerDamien Miller <djm@mindrot.org>2004-06-18 14:21:55 +0200
commitb8ea24868f0347ea6d5116cbd93197c1ab0e942b (patch)
tree77e9e8687e6265bde562cafbbdffd11231eb8b7c /ssh.c
parent - (djm) OpenBSD CVS Sync (diff)
downloadopenssh-b8ea24868f0347ea6d5116cbd93197c1ab0e942b.tar.xz
openssh-b8ea24868f0347ea6d5116cbd93197c1ab0e942b.zip
- markus@cvs.openbsd.org 2004/06/18 10:55:43
[ssh.1 ssh.c] trim synopsis for -S, allow -S and -oControlMaster, -MM means 'ask'; ok djm
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ssh.c b/ssh.c
index 89b038198..59f4f41bd 100644
--- a/ssh.c
+++ b/ssh.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.218 2004/06/18 10:40:19 djm Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.219 2004/06/18 10:55:43 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -160,8 +160,7 @@ usage(void)
"usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n"
" [-D port] [-e escape_char] [-F configfile] [-i identity_file]\n"
" [-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]\n"
-" [-p port] [-R port:host:hostport] [-S ctl_path]\n"
-" [user@]hostname [command]\n"
+" [-p port] [-R port:host:hostport] [-S ctl] [user@]hostname [command]\n"
);
exit(1);
}
@@ -377,7 +376,8 @@ again:
}
break;
case 'M':
- options.control_master = 1;
+ options.control_master =
+ (options.control_master >= 1) ? 2 : 1;
break;
case 'p':
options.port = a2port(optarg);
@@ -451,8 +451,6 @@ again:
if (options.control_path != NULL)
free(options.control_path);
options.control_path = xstrdup(optarg);
- if (options.control_master == -1)
- options.control_master = 0;
break;
case 'b':
options.bind_address = optarg;