Package: netcat-openbsd Version: 1.105-6 Severity: normal Tags: patch According to the manpage, -U with -u should use unix dgram sockets, but there's a check disallowing these two flags to be mixed. Simply disabling that check makes it work -- I tested it with wpa_supplicant's control socket. I'm attaching a patch which fixes that.
-- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (980, 'testing'), (980, 'stable'), (500, 'unstable'), (500, 'stable'), (200, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.3.7-lis64+ (SMP w/4 CPU cores) Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages netcat-openbsd depends on: ii libbsd0 0.3.0-2 ii libc6 2.13-27 netcat-openbsd recommends no packages. netcat-openbsd suggests no packages. -- no debconf information -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/
diff -up netcat-openbsd-1.105/netcat.c.orig netcat-openbsd-1.105/netcat.c --- netcat-openbsd-1.105/netcat.c.orig 2012-06-11 00:54:15.000000000 +0200 +++ netcat-openbsd-1.105/netcat.c 2012-06-11 00:59:03.370482865 +0200 @@ -354,8 +354,10 @@ main(int argc, char *argv[]) /* Cruft to make sure options are clean, and used properly. */ if (argv[0] && !argv[1] && family == AF_UNIX) { +# if 0 if (uflag) errx(1, "cannot use -u and -U"); +# endif # if defined(IPPROTO_DCCP) && defined(SOCK_DCCP) if (dccpflag) errx(1, "cannot use -Z and -U");