Package: rarpd
Version: 0.981107-7.1
Severity: normal

I'm not quite sure what the exact trigger is for this bug. I have a script to
reconfigure the network config on systems that I admin for. At the end of the
network frobbing, I restart dhcpd, xinetd and rarpd through:
   /etc/init.d/rarpd restart

At this point, rarpd sometimes goes beserk. The problems is taht this fills up
/var, causing loads of other problems.
I have a simple patch that makes rarpd exit when this condition happens. So
I am still left with a nonfunctional rarpd, but without the side-effects ;-)
--- rarpd.c.org 2011-05-25 09:25:56.000000000 +0200
+++ rarpd.c     2011-05-25 09:41:32.000000000 +0200
@ -435,6 +435,11 @@
        if (n<0) {
                if (errno != EINTR)
                        syslog(LOG_ERR, "recvfrom: %m");
+               
+               /* Avoid filling up /var */
+               if (errno == ENOTSOCK)
+                       exit(1);
+
                return;
        }

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (990, 'stable'), (900, 'testing'), (300, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages rarpd depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib

rarpd recommends no packages.

Versions of packages rarpd suggests:
pn  update-cluster                <none>     (no description available)





-- 
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