Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] syslog facility missing compilation error, was: milter-greylist 4.2beta1 is out

2009-02-10 by Christian PELISSIER

OK. here is the diff

 diff conf_yacc.y conf_yacc.y.REF
468,488c468,469
<       |       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 {
< #ifdef          LOG_FTP
<                       conf.c_logfac = LOG_FTP;
< #else
<                         mg_log(LOG_ERR, "Your system does not support
"
<                         "authpriv syslog facility, line %d",
<                         conf_line);
<                         exit(EX_DATAERR);
< #endif
<                 }
---
>       |       LOGFAC LOGFAC_AUTHPRIV { conf.c_logfac = LOG_AUTHPRIV; }
>       |       LOGFAC LOGFAC_FTP { conf.c_logfac = LOG_FTP; }



Le mar. 10/02/2009 \ufffd 13:40, Emmanuel Dreyfus a \ufffdcrit :
> 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@...
> 
> 
> 
> 
-- 
Christian P\ufffdlissier
Office National d'\ufffdtudes et de Recherches A\ufffdrospatiales
BP 72 92322 Chatillon
Tel: 33 1 46 73 44 19, Fax: 33 1 46 73 41 50

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.