diff options
author | delphij <delphij@FreeBSD.org> | 2013-04-15 05:31:59 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-04-15 05:31:59 +0000 |
commit | f60aecd8cceb20af13105c4a025a7e923e2c5602 (patch) | |
tree | 4889102881d3a86c1ff9838137312a2039176cea /contrib/netcat/nc.1 | |
parent | 096e09138648568e0e471b4b613c96060a268e19 (diff) | |
download | FreeBSD-src-f60aecd8cceb20af13105c4a025a7e923e2c5602.zip FreeBSD-src-f60aecd8cceb20af13105c4a025a7e923e2c5602.tar.gz |
MFV r249496,249498. The most visible change is that we no longer shuts
down the connection when stdin closes, by default. This matches Hobbit's
original netcat and GNU netcat.
Old behavior can be restored with the new -N flag.
MFC after: 2 weeks
Diffstat (limited to 'contrib/netcat/nc.1')
-rw-r--r-- | contrib/netcat/nc.1 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/netcat/nc.1 b/contrib/netcat/nc.1 index 62eca47..e62cdea 100644 --- a/contrib/netcat/nc.1 +++ b/contrib/netcat/nc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.61 2012/07/07 15:33:02 haesbaert Exp $ +.\" $OpenBSD: nc.1,v 1.62 2013/03/20 09:27:56 sthen Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 7, 2012 +.Dd July 7, 2012 .Dt NC 1 .Os .Sh NAME @@ -36,7 +36,7 @@ .Sh SYNOPSIS .Nm nc .Bk -words -.Op Fl 46DdEhklnrStUuvz +.Op Fl 46DdEhklNnrStUuvz .Op Fl e Ar IPsec_policy .Op Fl I Ar length .Op Fl i Ar interval @@ -155,6 +155,10 @@ options. Additionally, any timeouts specified with the .Fl w option are ignored. +.It Fl N +.Xr shutdown 2 +the network socket after EOF on the input. +Some servers require this to finish their work. .It Fl n Do not do any DNS or service lookups on any specified addresses, hostnames or ports. |