summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-29 06:15:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-09-29 06:15:19 +0000
commit1777d10ad9b1f30b2c0e3b80b81e67645c1b0933 (patch)
treea9dbbbf6c55a926905582240bd66bf0e7e961c6f /usr.bin/ssh/ssh.c
parent6dc7bd1624a8cff4b2322ebdd254d8e95977f9bf (diff)
add -V option
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 842d97abf31..57596041028 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -18,7 +18,7 @@ Modified to work with SSL by Niels Provos <provos@citi.umich.edu> in Canada.
*/
#include "includes.h"
-RCSID("$Id: ssh.c,v 1.5 1999/09/29 06:15:00 deraadt Exp $");
+RCSID("$Id: ssh.c,v 1.6 1999/09/29 06:15:18 deraadt Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -324,10 +324,13 @@ main(int ac, char **av)
break;
case 'v':
+ case 'V':
debug_flag = 1;
fprintf(stderr, "SSH Version %s, protocol version %d.%d.\n",
SSH_VERSION, PROTOCOL_MAJOR, PROTOCOL_MINOR);
fprintf(stderr, "Compiled with SSL.\n");
+ if (opt == 'V')
+ exit(0);
break;
case 'q':