diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-03 06:45:55 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-03-03 06:45:55 +0000 |
commit | 4a9605b692ae0b76ce3b932f4ad35ed2d9787f8a (patch) | |
tree | 022a8aaf7d3ab0e71dcc69da293593ad7d3194e2 | |
parent | b177323698c3bd6ff4d85c3391d6dbc8c670525e (diff) |
add -d to usage too, from carson harding
-rw-r--r-- | usr.bin/nc/nc.1 | 4 | ||||
-rw-r--r-- | usr.bin/nc/netcat.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/nc/nc.1 b/usr.bin/nc/nc.1 index 82712fad801..b40ce30360d 100644 --- a/usr.bin/nc/nc.1 +++ b/usr.bin/nc/nc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.29 2004/03/01 00:37:08 tedu Exp $ +.\" $OpenBSD: nc.1,v 1.30 2004/03/03 06:45:54 tedu Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -33,7 +33,7 @@ .Nd arbitrary TCP and UDP connections and listens .Sh SYNOPSIS .Nm nc -.Op Fl 46hklnrStUuvz +.Op Fl 46dhklnrStUuvz .Op Fl i Ar interval .Op Fl p Ar source_port .Op Fl s Ar source_ip_address diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index f303bd2fb15..d6d3a2cffe1 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.68 2004/03/01 00:37:08 tedu Exp $ */ +/* $OpenBSD: netcat.c,v 1.69 2004/03/03 06:45:54 tedu Exp $ */ /* * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> * @@ -750,6 +750,7 @@ help(void) fprintf(stderr, "\tCommand Summary:\n\ \t-4 Use IPv4\n\ \t-6 Use IPv6\n\ + \t-d Detach from stdin\n\ \t-h This help text\n\ \t-i secs\t Delay interval for lines sent, ports scanned\n\ \t-k Keep inbound sockets open for multiple connects\n\ @@ -774,7 +775,7 @@ help(void) void usage(int ret) { - fprintf(stderr, "usage: nc [-46hklnrStUuvz] [-i interval] [-p source_port] [-s source_ip_address]\n"); + fprintf(stderr, "usage: nc [-46dhklnrStUuvz] [-i interval] [-p source_port] [-s source_ip_address]\n"); fprintf(stderr, "\t [-w timeout] [-X socks_version] [-x proxy_address[:port]] [hostname]\n"); fprintf(stderr, "\t [port[s]]\n"); if (ret) |