On Tue, Feb 10, 2009 at 12:20:37PM +0100, attila.bruncsak@... wrote:
> Actually my system does not have AUTHPRIV and FTP syslog facility in
> <syslog.h>.
Can you try something like this? I leave the LOGFAC_FTP as an exercise.
--- conf_yacc.y 18 Jan 2009 13:03:50 -0000 1.96
+++ conf_yacc.y 10 Feb 2009 20:00:09 -0000
@@ -464,9 +464,19 @@
| LOGFAC LOGFAC_LPR { conf.c_logfac = LOG_LPR; }
| LOGFAC LOGFAC_NEWS { conf.c_logfac = LOG_NEWS; }
| LOGFAC LOGFAC_UUCP { conf.c_logfac = LOG_UUCP; }
| LOGFAC LOGFAC_CRON { conf.c_logfac = LOG_CRON; }
- | LOGFAC LOGFAC_AUTHPRIV { conf.c_logfac = LOG_AUTHPRIV; }
+ | LOGFAC LOGFAC_AUTHPRIV {
+#ifdef LOG_AUTHPRIV
+ conf.c_logfac = LOG_AUTHPRIV;
+#else
+
+ mg_log(LOG_ERR, "Your system does not support "
+ "authpriv syslog facility, line %d",
+ conf_line);
+ exit(EX_DATAERR);
+#endif
+ }
| LOGFAC LOGFAC_FTP { conf.c_logfac = LOG_FTP; }
| LOGFAC LOGFAC_LOCAL0 { conf.c_logfac = LOG_LOCAL0; }
| LOGFAC LOGFAC_LOCAL1 { conf.c_logfac = LOG_LOCAL1; }
| LOGFAC LOGFAC_LOCAL2 { conf.c_logfac = LOG_LOCAL2; }
--
Emmanuel Dreyfus
manu@...Message
Re: [milter-greylist] syslog facility missing compilation error, was: milter-greylist 4.2beta1 is out
2009-02-10 by Emmanuel Dreyfus
Attachments
- No local attachments were found for this message.