netcat error when using -p

Bug #666089 reported by waydaws
6
This bug affects 1 person
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-Ankh:/etc/xdg/menus# nc -l -p 12345
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[:port]] [hostname] [port[s]]

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.