diff options
| author | sthen <> | 2013-03-20 09:27:56 +0000 |
|---|---|---|
| committer | sthen <> | 2013-03-20 09:27:56 +0000 |
| commit | c4f4e5063dda3c4c872f815bd74cc14becd612de (patch) | |
| tree | 8a3411bc0e5ca0935ae3599f2059c0d90cd65e21 /src/usr.bin/nc/nc.1 | |
| parent | dc5f4b3289485434eb74f45d003b8fad55919a25 (diff) | |
| download | openbsd-c4f4e5063dda3c4c872f815bd74cc14becd612de.tar.gz openbsd-c4f4e5063dda3c4c872f815bd74cc14becd612de.tar.bz2 openbsd-c4f4e5063dda3c4c872f815bd74cc14becd612de.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. |
