From sarumaru@cbug.d.xcast.jp  Tue Mar  7 03:48:05 2006
Return-Path: <sarumaru@cbug.d.xcast.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 66BAA16A422
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Mar 2006 03:48:05 +0000 (GMT)
	(envelope-from sarumaru@cbug.d.xcast.jp)
Received: from cbug.d.xcast.jp (ntkngw102065.kngw.nt.ftth.ppp.infoweb.ne.jp [220.219.197.65])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A3DEA43D58
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Mar 2006 03:48:00 +0000 (GMT)
	(envelope-from sarumaru@cbug.d.xcast.jp)
Received: from cbug.d.xcast.jp (localhost [127.0.0.1])
	by cbug.d.xcast.jp (8.13.4/8.13.4) with ESMTP id k273lkSJ093109
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 7 Mar 2006 12:47:47 +0900 (JST)
	(envelope-from sarumaru@cbug.d.xcast.jp)
Received: (from sarumaru@localhost)
	by cbug.d.xcast.jp (8.13.4/8.13.4/Submit) id k273lkm7093108;
	Tue, 7 Mar 2006 12:47:46 +0900 (JST)
	(envelope-from sarumaru)
Message-Id: <200603070347.k273lkm7093108@cbug.d.xcast.jp>
Date: Tue, 7 Mar 2006 12:47:46 +0900 (JST)
From: Yoshihiko Sarumaru <mistral@imasy.or.jp>
Reply-To: Yoshihiko Sarumaru <mistral@imasy.or.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] fix off-by-one example presentation on nc(1)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         94158
>Category:       docs
>Synopsis:       [PATCH] fix off-by-one example presentation on nc(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    hrs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 07 03:50:08 GMT 2006
>Closed-Date:    Thu Mar 23 07:57:55 GMT 2006
>Last-Modified:  Thu Mar 23 07:57:55 GMT 2006
>Originator:     Yoshihiko Sarumaru
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
FreeBSD jpman project
>Environment:
System: FreeBSD cbug.d.xcast.jp 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sun Dec 18 06:28:15 JST 2005 root@cbug.d.xcast.jp:/usr/obj/usr/src/sys/CBUG_XCAST6 i386


	
>Description:
	FreeBSD version of netcat has some extension such as IPsec support.
	nc(1) manpage also extented to describe IPsec related options, but
	it have been inserted to wrong position, and missing '$' prompt.

>How-To-Repeat:
	man 1 nc
>Fix:
--- /usr/src/contrib/netcat/nc.1	Mon Jun 27 16:07:55 2005
+++ nc.1	Tue Mar  7 12:37:34 2006
@@ -389,17 +389,17 @@
 Open a TCP connection to port 42 of example.host using 10.1.2.3 as the
 IP for the local end of the connection:
 .Pp
-.Dl "nc -E example.host 42"
+.Dl $ nc -s 10.1.2.3 example.host 42
 .Pp
 Open a TCP connection to port 42 of example.host using IPsec ESP for
 incoming and outgoing traffic.
 .Pp
-.Dl "nc -e 'out ipsec esp/transport//require' example.host 42"
+.Dl $ nc -E example.host 42
 .Pp
 Open a TCP connection to port 42 of example.host using IPsec ESP for
 outgoing traffic only.
 .Pp
-.Dl $ nc -s 10.1.2.3 example.host 42
+.Dl $ nc -e 'out ipsec esp/transport//require' example.host 42
 .Pp
 Send UDP packets to ports 20-30 of example.host, and report which ones
 responded with an ICMP packet after three seconds:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->hrs 
Responsible-Changed-By: hrs 
Responsible-Changed-When: Tue Mar 7 17:05:22 UTC 2006 
Responsible-Changed-Why:  
I will handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94158 
State-Changed-From-To: open->patched 
State-Changed-By: hrs 
State-Changed-When: Tue Mar 7 18:34:26 UTC 2006 
State-Changed-Why:  
Committed to -CURRENT.  MFC will come in the next couple of days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94158 
State-Changed-From-To: patched->closed 
State-Changed-By: hrs 
State-Changed-When: Thu Mar 23 07:57:11 UTC 2006 
State-Changed-Why:  
MFC has been done.  Thanks for submitting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94158 
>Unformatted:
