netcat error when using -p
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netcat (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: netcat
Not sure what's change in Lucid, but when I use -p [portnumber] with the -l switch, netcat shows a syntax error.
For example,
root@Ausar-
usage: nc [-46DdhklnrStUuvzC] [-i interval] [-P proxy_username] [-p source_port]
[-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_protocol]
[-x proxy_address[
This should launch a listener, listening on port. That syntax report is also different from what it used to in 9.04. While it's obvious that a different version of netcat has been used, it should at least have the same command line switches. (The man page seems the same, if memory serves).
Yes, I can open a listener by just specifying the port number without using the -p switch, which is normal for a netcat client, but not for a listener.
Switch compatibility should be maintained or somehow the change should be reported to the end user.