-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7.94/95 break SCTP listening when stdin=/dev/null #2829
Labels
Comments
strace output with /dev/null on stdin
with /dev/zero on stdin:
and when it is attached to the terminal (working):
So if there is data on stdin (or it was closed) it will exit right away before printing the data it got. |
Luap99
added a commit
to Luap99/netavark
that referenced
this issue
May 3, 2024
nmap-ncat seem to have weird bugs in that the received data is only printed on stdout when there is a no data on stdin, not stdin because the returns EOF when it gets read and if there is any data then ncat fails as well as it cannot write it to the remote[1]... So just try to emulate like how it works in a terminal by creating an anonymous pipe that contains no data so ncat is happy and prints our test string as expected. [1] nmap/nmap#2829 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Luap99
added a commit
to Luap99/netavark
that referenced
this issue
May 7, 2024
nmap-ncat seem to have weird bugs in that the received data is only printed on stdout when there is a no data on stdin, not stdin because the returns EOF when it gets read and if there is any data then ncat fails as well as it cannot write it to the remote[1]... So just try to emulate like how it works in a terminal by creating an anonymous pipe that contains no data so ncat is happy and prints our test string as expected. [1] nmap/nmap#2829 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Identical to #2685, except with SCTP
To Reproduce
Terminal 1:
Terminal 2:
# echo test | nc -4 --sctp 127.0.0.1 5000
Expected behavior
Expect terminal 1 to see
test
. (Removing the redirection makes it work)Version info (please complete the following information):
ncat --version
: Ncat: Version 7.95The text was updated successfully, but these errors were encountered: