summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortedu <>2004-03-03 06:45:54 +0000
committertedu <>2004-03-03 06:45:54 +0000
commit1e83adf2a667486fb4d7679b3c6c8140106165a6 (patch)
treed22b8bc0415f4a5d6eb546426e0874773c69bfcd
parent0eafdb54f96ccd663f83a5b519ef86f63564b791 (diff)
downloadopenbsd-1e83adf2a667486fb4d7679b3c6c8140106165a6.tar.gz
openbsd-1e83adf2a667486fb4d7679b3c6c8140106165a6.tar.bz2
openbsd-1e83adf2a667486fb4d7679b3c6c8140106165a6.zip
add -d to usage too, from carson harding
-rw-r--r--src/usr.bin/nc/nc.14
-rw-r--r--src/usr.bin/nc/netcat.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1
index 82712fad80..b40ce30360 100644
--- a/src/usr.bin/nc/nc.1
+++ b/src/usr.bin/nc/nc.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: nc.1,v 1.29 2004/03/01 00:37:08 tedu Exp $ 1.\" $OpenBSD: nc.1,v 1.30 2004/03/03 06:45:54 tedu Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 David Sacerdote 3.\" Copyright (c) 1996 David Sacerdote
4.\" All rights reserved. 4.\" All rights reserved.
@@ -33,7 +33,7 @@
33.Nd arbitrary TCP and UDP connections and listens 33.Nd arbitrary TCP and UDP connections and listens
34.Sh SYNOPSIS 34.Sh SYNOPSIS
35.Nm nc 35.Nm nc
36.Op Fl 46hklnrStUuvz 36.Op Fl 46dhklnrStUuvz
37.Op Fl i Ar interval 37.Op Fl i Ar interval
38.Op Fl p Ar source_port 38.Op Fl p Ar source_port
39.Op Fl s Ar source_ip_address 39.Op Fl s Ar source_ip_address
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index f303bd2fb1..d6d3a2cffe 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.68 2004/03/01 00:37:08 tedu Exp $ */ 1/* $OpenBSD: netcat.c,v 1.69 2004/03/03 06:45:54 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * 4 *
@@ -750,6 +750,7 @@ help(void)
750 fprintf(stderr, "\tCommand Summary:\n\ 750 fprintf(stderr, "\tCommand Summary:\n\
751 \t-4 Use IPv4\n\ 751 \t-4 Use IPv4\n\
752 \t-6 Use IPv6\n\ 752 \t-6 Use IPv6\n\
753 \t-d Detach from stdin\n\
753 \t-h This help text\n\ 754 \t-h This help text\n\
754 \t-i secs\t Delay interval for lines sent, ports scanned\n\ 755 \t-i secs\t Delay interval for lines sent, ports scanned\n\
755 \t-k Keep inbound sockets open for multiple connects\n\ 756 \t-k Keep inbound sockets open for multiple connects\n\
@@ -774,7 +775,7 @@ help(void)
774void 775void
775usage(int ret) 776usage(int ret)
776{ 777{
777 fprintf(stderr, "usage: nc [-46hklnrStUuvz] [-i interval] [-p source_port] [-s source_ip_address]\n"); 778 fprintf(stderr, "usage: nc [-46dhklnrStUuvz] [-i interval] [-p source_port] [-s source_ip_address]\n");
778 fprintf(stderr, "\t [-w timeout] [-X socks_version] [-x proxy_address[:port]] [hostname]\n"); 779 fprintf(stderr, "\t [-w timeout] [-X socks_version] [-x proxy_address[:port]] [hostname]\n");
779 fprintf(stderr, "\t [port[s]]\n"); 780 fprintf(stderr, "\t [port[s]]\n");
780 if (ret) 781 if (ret)