Bug 977637 - /usr/bin/nc fails when connecting to UNIX-domain sockets
Summary: /usr/bin/nc fails when connecting to UNIX-domain sockets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nmap
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-25 03:19 UTC by Michael Chapman
Modified: 2013-08-14 13:01 UTC (History)
3 users (show)

Fixed In Version: nmap-6.25-8.20130624svn.fc19
Clone Of:
Environment:
Last Closed: 2013-08-14 13:01:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Chapman 2013-06-25 03:19:34 UTC
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):

- nmap-ncat-6.25-2.fc19.x86_64
- socat-1.7.2.2-1.fc19.x86_64

Steps to Reproduce:
1. In one terminal: nc -l -U socket
2. In another terminal: nc -U socket

Actual results:
2013/06/25 13:10:48 socat[23264] E unknown device/address "socket"

Expected results: A successful connection.

Comment 1 Michal Hlavinka 2013-07-02 14:48:37 UTC
nc socat wrapper dropped


Note You need to log in before you can comment on or make changes to this bug.