Package: netcat
Version: 1.10-32
Severity: normal

netcat -e redirects standard error to the network. This applies both to the
program it executes (which is quite weird and inconvenient, even considering
that it can be worked around with silly file descriptor duplication and
redirection shell tricks), and, even more ridiculously, to netcat itself.
This behaviour seems to be seriously broken. It also results in some stderr
messages being lost, since netcat attempts to display them when the
connection is already closed.

On the local side:

   $ netcat -vve idonotexist localhost 6666
   localhost [127.0.0.1] 6666 (?) open
   $

(Observe lack of error message and -vv statistics.)

On the remote side:

   $ nc -vlp 6666
   listening on [any] 6666 ...
   connect to [127.0.0.1] from localhost [127.0.0.1] 33207
   exec idonotexist failed : No such file or directory
   $

-- System Information:
Debian Release: testing/unstable
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)

Versions of packages netcat depends on:
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries

netcat recommends no packages.

-- no debconf information

Reply via email to