Red Hat Bugzilla – Bug 977637
/usr/bin/nc fails when connecting to UNIX-domain sockets
Last modified: 2013-08-14 09:01:46 EDT
Description of problem:
The /usr/bin/nc shell-script wrapper incorrectly diverts "nc -U <filename>" to socat. Specifically, it does not precede the socket filename argument with an address type (e.g. "UNIX-CONNECT:" or "UNIX-LISTEN:"). socat is unable to resolve the argument and dies with an error message.
This wrapper should not be necessary any more: as of Nmap 6.20 nmap-ncat has built-in support for UNIX-domain sockets. Replacing the shell script with a symlink to ncat appears to work correctly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In one terminal: nc -l -U socket
2. In another terminal: nc -U socket
2013/06/25 13:10:48 socat E unknown device/address "socket"
Expected results: A successful connection.
nc socat wrapper dropped