I recently ran into this bug, too (on an Ubuntu Precise system, running
bsdutils 1:2.20.1-1ubuntu3), and in my investigation discovered that a
similar patch has been applied upstream to fix this bug:

  
http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=86248cd28a27bdd9a437e389966b0415e106802e



Also, for what it's worth, I realized that because of specifics of the
conditionals used in the buggy branches of code one can actually trick
the v2.20 "logger" into sending over UDP by specifying both "-n" and "-u"
options at the same time:

   $ logger -n myloghost -u FOO -p local0.info "test log message"
   $ echo "another test message" | logger -n myloghost -u FOO -p local0.info

(Specifically, when both options are specified the socket-path given for
the "-u" option is ignored -- but the fact the option is specified
triggers logger to go ahead and use the UDP connection set up by the
"-n" option rather than incorrectly going down the "builtin syslog
routines" code path.)


                                        Nathan


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to