[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ipfilter proposed changes



hello!
there is another (minor) problem with new ipfilter code:
ipmon no longer forks by default (in /etc/rc), so
	ipmon_flags=-Ds
should be added to /etc/rc.conf
But the daemon-mode is broken and does not work with the '-s' (syslog)
option:

--- ipmon.c-1.13	Wed Sep 16 23:23:29 1998
+++ ipmon.c	Wed Sep 16 23:28:52 1998
@@ -827,7 +827,7 @@
 		setvbuf(log, NULL, _IONBF, 0);
 	}
 
-	if (make_daemon && (log != stdout)) {
+	if (make_daemon && ((log != stdout) || (opts & OPT_SYSLOG))) {
 		if (fork() > 0)
 			exit(0);
 		close(0);

-markus