That's a long summary. My gripes are: #1. rwhod does not work on amd64: it complains in the syslog: ioctl (get interface flags). #2. old entries in /var/spool/rwho are never removed #3. /etc/init.d/rwhod does not allow overriding flags passed to rwhod via /etc/conf.d Plus, #4. the Debian version of rwhod has many more flags (-f and -i) to allow more fine-grained selection of active interfaces.
Created attachment 74205 [details, diff] Rwhod debian patch. This patch synchronizes gentoo's netkit-rwho with the Debian version. This takes care of problems #1 and #4. Please note that this patch: - fixes the memory corruption on AMD64, - adds the new -u <user> flag to run rwho without privileges, - add the new -f flag to forward rwho packets in between active interfaces - add the new -i <if> flag to select which interfaces rwho is going to send packets on This patch has been used on Debian systems for at least over one year, without complaints.
Created attachment 74206 [details] /etc/conf.d/rwhod Suggested rwod configuration defaults.
Created attachment 74207 [details] Updated /etc/init.d/rwhod file to pass arguments to rwhod as defined in /etc/conf.d/rwhod The patches /etc/conf.d/rwhod and this one (/etc/init.d/rwhod) take care of problem #3.
Created attachment 74208 [details] Suggested /etc/cron.monthly/rwhod script. This takes care of problem #2.
Created attachment 74209 [details] Updated ebuild. This updated ebuild integrates all the changes (#1-#4).
Thanks for the contribution, this solves a couple of rwho issues. In cvs.
Verfied that the new ebuild works on amd64.