NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/60253: "-c" option used in nc(1) man page example, but not documented
>Number: 60253
>Category: misc
>Synopsis: "-c" option used in nc(1) man page example, but not documented
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue May 12 16:55:00 +0000 2026
>Originator: J. Lewis Muir
>Release: current
>Organization:
>Environment:
n/a
>Description:
In the EXAMPLES section of the nc(1) man page
https://man.netbsd.org/nc.1
the second example uses the "-c" option
$ nc -v -c -e adsf.au.doubleclick.net www.google.ca 443
but the "-c" option is not documented in the nc(1) man page.
>How-To-Repeat:
n/a
>Fix:
If the "-c" option is supported but not documented, add the "-c" option to the SYNOPSIS and DESCRIPTION sections of the nc(1) man page.
If the "-c" option is not supported, change the example in the nc(1) man page to not use it.
Looking at the source code
https://nxr.netbsd.org/xref/src/usr.bin/nc/netcat.c
it seems that the option is supported if the CRYPTO macro evaluates to true. (And FYI, it looks like there are other options that are also not documented for the same case.)
Home |
Main Index |
Thread Index |
Old Index