diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2017-10-16 09:18:49 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2017-10-16 09:18:49 +0000 |
commit | 6921ca5f809baccedb8552bff8f45fe449b38c36 (patch) | |
tree | 9aaec77cfc8f39a2f68825d0c3bbd8272f850a7e /mail/sendmail/files/patch-main.c | |
parent | Skip comments when parsing GID_FILES (diff) |
- new option BLACKLISTD for FreeBSD-11
Submitted by: Kurt Lidl, Masachika ISHIZUKA
Differential Revision: https://reviews.freebsd.org/D6595
Diffstat (limited to 'mail/sendmail/files/patch-main.c')
-rw-r--r-- | mail/sendmail/files/patch-main.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mail/sendmail/files/patch-main.c b/mail/sendmail/files/patch-main.c new file mode 100644 index 000000000000..47e637162bde --- /dev/null +++ b/mail/sendmail/files/patch-main.c @@ -0,0 +1,26 @@ +--- sendmail/main.c.orig 2016-06-12 18:24:56.170900000 -0400 ++++ sendmail/main.c 2016-06-12 18:30:07.426701000 -0400 +@@ -4642,3 +4642,23 @@ + sm_etype_printf, + "quick abort %0", + }; ++ ++#ifdef USE_BLACKLIST ++static struct blacklist *blstate; ++ ++void ++blacklist_init(void) ++{ ++ blstate = blacklist_open(); ++} ++ ++void ++blacklist_notify(int a, int fd, char *msg) ++{ ++ if (blstate == NULL) ++ blacklist_init(); ++ if (blstate == NULL) ++ return; ++ (void)blacklist_r(blstate, a, fd, msg); ++} ++#endif |