Bug 695768

Summary: nc gives nonsense since update
Product: [Fedora] Fedora Reporter: udo <udovdh>
Component: ncAssignee: Petr Šabata <psabata>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 14CC: psabata, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-13 06:28:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description udo 2011-04-12 16:09:29 UTC
Description of problem:
nc gives nonsense output since update

Version-Release number of selected component (if applicable):
nc-1.100-1.fc14.i686

How reproducible:
yum update

Steps to Reproduce:
1. have nc-1.84-23.fc14.i686 running well
2. yum update
3. see nc-1.100-1.fc14.i686 give the output below
  
Actual results:
See below.

Expected results:
Connections like nc 1.84 gave.

Additional info:
[root@epia 2]# nc localhost 22
nc: port number M鍿P鍿Z鍿: 22
[root@epia 2]# nc localhost 80
nc: port number My��Py��Zy��: 80
[root@epia 2]# nc localhost 0
nc: port number N�տQ�տ[�տ: 0
[root@epia 2]# nc localhost 
usage: nc [-46CDdhklnrStUuvz] [-I length] [-i interval] [-O length]
	  [-P proxy_username] [-p source_port] [-s source] [-T ToS]
	  [-V rtable] [-w timeout] [-X proxy_protocol]
	  [-x proxy_address[:port]] [destination] [port]
[root@epia 2]# nc localhost 139
nc: port number L���O���Y���: 139
[root@epia 2]# nc localhost 1024
nc: port number K���N���X���: 1024
[root@epia 2]# nc localhost 1
nc: port number N��Q��[��: 1
[root@epia 2]# nc localhost 2
nc: port number N)��Q)��[)��: 2
[root@epia 2]# nc localhost a
nc: port number N���Q���[���: a
[root@epia 2]# nc localhost as
nc: port number MiӿPiӿZiӿ: as

I can provide a strace.

Comment 1 Petr Šabata 2011-04-13 06:28:57 UTC
This was caused by inclusion of non-libbsd headers.
Please, test v100-2, which is available in Bodhi. You can find the links in the duplicate bug.

*** This bug has been marked as a duplicate of bug 694407 ***