On Tue, 30 Jan 2007 10:49:02 +0200 Mart Pirita <sysadmin@...> wrote:
> > He meant to change printf(...) to mg_log(LOG_ERR, ...).
> >
> >
> Hmm, sorry again, the first suggestion was:
>
> Index: acl.c
> ===================================================================
> RCS file: /cvsroot/milter-greylist/acl.c,v
> retrieving revision 1.44
> diff -U2 -r1.44 acl.c
> --- acl.c 4 Jan 2007 23:01:46 -0000 1.44
> +++ acl.c 8 Jan 2007 14:39:40 -0000
> @@ -1133,8 +1133,9 @@
>
> + printf("try ACL %d\n", acl->a_line);
> LIST_FOREACH(ac, &acl->a_clause, ac_list) {
> if ((found = (*ac->ac_acr->acr_filter)
> (&ac->ac_data, stage, &ap,
> priv)) == 0)
> break;
>
> + printf(" found 0x%x\n", found);
> retval |= found;
> }
>
>
>
> Now, which printf(...) I should change? The first ot both? And what is
> the exact syntax (I'm not coder:( )?
Both, and as I said change printf(...) to mg_log(LOG_ERR, ...). I.e. instead of
+ printf("try ACL %d\n", acl->a_line);
+ printf(" found 0x%x\n", found);
add these lines as:
+ mg_log(LOG_ERR, "try ACL %d\n", acl->a_line);
+ mg_log(LOG_ERR, " found 0x%x\n", found);
Regards,
NerijusMessage
Re: [milter-greylist] Rules per virtual domain name based?
2007-01-30 by Nerijus Baliunas
Attachments
- No local attachments were found for this message.