[Bug 1656785] Re: nc -d -l does not return data (only empty strings)
Stefan Bader
stefan.bader at canonical.com
Wed Jan 25 08:44:10 UTC 2017
Added to the Debian bug report. Basically the output problem is related to a Debian add-on patch to introduce the -q# option (delayed exit) which has been incorrectly adapted to the new code.
However while testing a possible solution I found that upstream changed the default behaviour of nc to not shutdown the net socket when the local input stream closes. Now this requires using -N to get this back.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netcat-openbsd in Ubuntu.
https://bugs.launchpad.net/bugs/1656785
Title:
nc -d -l does not return data (only empty strings)
Status in netcat-openbsd package in Ubuntu:
New
Status in netcat-openbsd package in Debian:
New
Bug description:
The Zesty (17.04) version of nc (1.130-1ubuntu1) no longer returns the
received data when using the '-d' (do not listen on stdin) flag
together with the '-l' (listen on socket) flag. This used to work in
previous releases (1.105-7ubuntu1 Trusty-Yakkety). In fact, in the
previous version, the '-d' flag seems to be required to make the data
transfer more reliable in scripts.
Testcase: Attached script passes on older versions, fails with the
current version of nc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netcat-openbsd/+bug/1656785/+subscriptions
More information about the foundations-bugs
mailing list