If you configure clamav-milter to use syslog instead of a log file, it
does not properly close stdout and stderr when daemonizing. The patch
below fixes this.
--
Chris Adams <[EMAIL PROTECTED]>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
diff -urN clamav-0.93.3-dist/clamav-milter/clamav-milter.c
clamav-0.93.3/clamav-milter/clamav-milter.c
--- clamav-0.93.3-dist/clamav-milter/clamav-milter.c 2008-07-25
09:04:15.000000000 -0500
+++ clamav-0.93.3/clamav-milter/clamav-milter.c 2008-07-25 09:09:01.000000000
-0500
@@ -1858,6 +1858,8 @@
}
dup(consolefd);
#else
+ close(1);
+ open("/dev/null", O_WRONLY);
logg_file = NULL;
#endif
}
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net