]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2004/06/18 10:55:43
authordjm <djm>
Fri, 18 Jun 2004 12:21:55 +0000 (12:21 +0000)
committerdjm <djm>
Fri, 18 Jun 2004 12:21:55 +0000 (12:21 +0000)
     [ssh.1 ssh.c]
     trim synopsis for -S, allow -S and -oControlMaster, -MM means 'ask'; ok djm

ChangeLog
ssh.1
ssh.c

index 637e05dc3bb92b4b3f54b16a74ad4d9abd548e22..4d43bfc21b0420e59fed3af58de0501ed83439a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [ssh.c]
      delay signal handler setup until we have finished talking to the master.
      allow interrupting of setup (e.g. if master is stuck); ok markus@
+   - 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
 
 20040617
  - (dtucker) [regress/scp.sh] diff -N is not portable (but needed for some
diff --git a/ssh.1 b/ssh.1
index dcd02c28f405aa07ae2ffacee472484c9ed8a317..5cdeee2dab2dfbfa984fb3109b2df26ef4ee6f45 100644 (file)
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.\" $OpenBSD: ssh.1,v 1.191 2004/06/17 23:56:57 djm Exp $
+.\" $OpenBSD: ssh.1,v 1.192 2004/06/18 10:55:43 markus Exp $
 .Dd September 25, 1999
 .Dt SSH 1
 .Os
@@ -74,7 +74,7 @@
 .Sm on
 .Xc
 .Oc
-.Op Fl S Ar ctl_path
+.Op Fl S Ar ctl
 .Oo Ar user Ns @ Oc Ns Ar hostname
 .Op Ar command
 .Sh DESCRIPTION
@@ -738,7 +738,7 @@ IPv6 addresses can be specified with an alternative syntax:
 .Ar hostport .
 .Xc
 .Sm on
-.It Fl S Ar ctl_path
+.It Fl S Ar ctl
 Specifies the location of a control socket for for connection sharing.
 Refer to the description of
 .Cm ControlPath
diff --git a/ssh.c b/ssh.c
index 89b038198ea145ea433b0ca79af26c0956212016..59f4f41bd66e67e97822c66ac234349eb03724ad 100644 (file)
--- 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;
This page took 0.058297 seconds and 5 git commands to generate.