diff options
author | sthen <> | 2013-03-20 09:27:56 +0000 |
---|---|---|
committer | sthen <> | 2013-03-20 09:27:56 +0000 |
commit | 5fde2c71362f5a21bf158abc2b2e73674095d596 (patch) | |
tree | 8a3411bc0e5ca0935ae3599f2059c0d90cd65e21 /src/usr.bin/nc/nc.1 | |
parent | 29262687e14b26418671088467d4b032efc4eba5 (diff) | |
download | openbsd-5fde2c71362f5a21bf158abc2b2e73674095d596.tar.gz openbsd-5fde2c71362f5a21bf158abc2b2e73674095d596.tar.bz2 openbsd-5fde2c71362f5a21bf158abc2b2e73674095d596.zip |
Don't shutdown nc(1)'s network socket when stdin closes. Matches *Hobbit*'s
original netcat and GNU netcat; revert to old behaviour with the new -N flag
if needed. After much discussion with otto deraadt tedu and Martin Pelikan.
ok deraadt@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 232b6f5b6e..6fdb56e7e3 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.61 2012/07/07 15:33:02 haesbaert Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.62 2013/03/20 09:27:56 sthen Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -25,7 +25,7 @@ | |||
25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | .\" | 27 | .\" |
28 | .Dd $Mdocdate: July 7 2012 $ | 28 | .Dd $Mdocdate: March 20 2013 $ |
29 | .Dt NC 1 | 29 | .Dt NC 1 |
30 | .Os | 30 | .Os |
31 | .Sh NAME | 31 | .Sh NAME |
@@ -34,7 +34,7 @@ | |||
34 | .Sh SYNOPSIS | 34 | .Sh SYNOPSIS |
35 | .Nm nc | 35 | .Nm nc |
36 | .Bk -words | 36 | .Bk -words |
37 | .Op Fl 46DdhklnrStUuvz | 37 | .Op Fl 46DdhklNnrStUuvz |
38 | .Op Fl I Ar length | 38 | .Op Fl I Ar length |
39 | .Op Fl i Ar interval | 39 | .Op Fl i Ar interval |
40 | .Op Fl O Ar length | 40 | .Op Fl O Ar length |
@@ -137,6 +137,10 @@ options. | |||
137 | Additionally, any timeouts specified with the | 137 | Additionally, any timeouts specified with the |
138 | .Fl w | 138 | .Fl w |
139 | option are ignored. | 139 | option are ignored. |
140 | .It Fl N | ||
141 | .Xr shutdown 2 | ||
142 | the network socket after EOF on the input. | ||
143 | Some servers require this to finish their work. | ||
140 | .It Fl n | 144 | .It Fl n |
141 | Do not do any DNS or service lookups on any specified addresses, | 145 | Do not do any DNS or service lookups on any specified addresses, |
142 | hostnames or ports. | 146 | hostnames or ports. |