summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/netcat.c
diff options
context:
space:
mode:
authorjmc <>2017-04-05 06:55:59 +0000
committerjmc <>2017-04-05 06:55:59 +0000
commit0403ae7d00b85a4ed9aac3dee7804185706a1c17 (patch)
treee7b3fa74db57640dacd12d844d462ed7d6176fd9 /src/usr.bin/nc/netcat.c
parent83f309bbf0134f1cf9d001a778a3ddd8c0556bc2 (diff)
downloadopenbsd-0403ae7d00b85a4ed9aac3dee7804185706a1c17.tar.gz
openbsd-0403ae7d00b85a4ed9aac3dee7804185706a1c17.tar.bz2
openbsd-0403ae7d00b85a4ed9aac3dee7804185706a1c17.zip
- -Z before -z in options list
- add -Z to help and usage()
Diffstat (limited to 'src/usr.bin/nc/netcat.c')
-rw-r--r--src/usr.bin/nc/netcat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index 74074aa938..4d81709bd0 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.179 2017/04/05 03:20:19 beck Exp $ */ 1/* $OpenBSD: netcat.c,v 1.180 2017/04/05 06:55:59 jmc Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * Copyright (c) 2015 Bob Beck. All rights reserved. 4 * Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -1708,6 +1708,7 @@ help(void)
1708 \t-w timeout Timeout for connects and final net reads\n\ 1708 \t-w timeout Timeout for connects and final net reads\n\
1709 \t-X proto Proxy protocol: \"4\", \"5\" (SOCKS) or \"connect\"\n\ 1709 \t-X proto Proxy protocol: \"4\", \"5\" (SOCKS) or \"connect\"\n\
1710 \t-x addr[:port]\tSpecify proxy address and port\n\ 1710 \t-x addr[:port]\tSpecify proxy address and port\n\
1711 \t-Z Peer certificate file\n\
1711 \t-z Zero-I/O mode [used for scanning]\n\ 1712 \t-z Zero-I/O mode [used for scanning]\n\
1712 Port numbers can be individual or ranges: lo-hi [inclusive]\n"); 1713 Port numbers can be individual or ranges: lo-hi [inclusive]\n");
1713 exit(1); 1714 exit(1);
@@ -1724,7 +1725,8 @@ usage(int ret)
1724 "[-R CAfile]\n" 1725 "[-R CAfile]\n"
1725 "\t [-s source] [-T keyword] [-V rtable] [-w timeout] " 1726 "\t [-s source] [-T keyword] [-V rtable] [-w timeout] "
1726 "[-X proxy_protocol]\n" 1727 "[-X proxy_protocol]\n"
1727 "\t [-x proxy_address[:port]] [destination] [port]\n"); 1728 "\t [-x proxy_address[:port]] [-Z peercertfile] "
1729 "[destination] [port]\n");
1728 if (ret) 1730 if (ret)
1729 exit(1); 1731 exit(1);
1730} 1732}