Package: netcat-openbsd Version: 1.105-7 Severity: normal Dear Maintainer,
The -q flag when used with the value 0 in combination with the -u flag does not behave the same as the netcat.traditional package. The behaviour is as if the wait value was negative: nc hangs forever waiting for EOF on stdin. This is also different from the description in the manual page: -q seconds after EOF on stdin, wait the specified number of seconds and then quit. If seconds is negative, wait forever. To reproduce: nc.openbsd -u -l -p 12345 & echo test | nc.openbsd -q 0 -u localhost 12345 and compare with: nc.traditional -u -l -p 12345 & echo test | nc.traditional -q 0 -u localhost 12345 Kind regards, Lefteris -- System Information: Debian Release: 8.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_GB.utf8 (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages netcat-openbsd depends on: ii libbsd0 0.7.0-2 ii libc6 2.19-18+deb8u2 netcat-openbsd recommends no packages. netcat-openbsd suggests no packages. -- debconf information: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "en_GB.utf8", LC_MONETARY = "en_GB.utf8", LC_CTYPE = "en_GB.utf8", LC_MEASUREMENT = "en_GB.utf8", LC_NUMERIC = "en_GB.utf8", LC_PAPER = "en_GB.utf8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory