Wind River Support Network

HomeDefectsLIN8-2157
Not to be fixed

LIN8-2157 : the message of nc was output to stderr file handle, not stdout, when it run successfully

Created: Dec 9, 2015    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Found In Version: 8.0
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# nc -z -v -n 127.0.0.1 22
127.0.0.1 22 (ssh) open
root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# echo $?
0
root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# nc -z -v -n 127.0.0.1 22 > log
127.0.0.1 22 (ssh) open
root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# cat log
root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# nc -z -v -n 127.0.0.1 22 2> log
root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# cat log
127.0.0.1 22 (ssh) open
root@dell760-lxnetwork-vlan4:/opt/wr-test/testcases/userspace-new/nftables# 

Steps to Reproduce

1. configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std

2. make nc.addpkg

3. make fs

4. deploy the image and boot up the target

5. # nc -z -v -n 127.0.0.1 22 > log
    # echo $?
    # cat log
Live chat
Online