diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2003-10-04 16:03:17 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2003-10-04 16:03:17 +0000 |
commit | 58c62615afaba65f9bf7183243ae5691c76fbdb6 (patch) | |
tree | 15aaa39c2eb33a977d32770e8d2295dd899bef3c /mail/milter-regex/files | |
parent | Omit unnecessary USE_MESA. (diff) |
new port of the milter-regex plugin for sendmail
Obtained from: the OpenBSD port by Daniel Hartmeier (author of
milter-regex)
Diffstat (limited to 'mail/milter-regex/files')
-rw-r--r-- | mail/milter-regex/files/patch-milter-regex.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/milter-regex/files/patch-milter-regex.c b/mail/milter-regex/files/patch-milter-regex.c new file mode 100644 index 000000000000..dbb2106e0e8c --- /dev/null +++ b/mail/milter-regex/files/patch-milter-regex.c @@ -0,0 +1,32 @@ +$FreeBSD$ + +We lack OpenBSD's re-entrant logging functions. + +--- milter-regex.c.orig Sat Sep 27 16:58:48 2003 ++++ milter-regex.c Fri Oct 3 23:11:00 2003 +@@ -54,7 +54,6 @@ + static const char *rule_file_name = "/etc/milter-regex.conf"; + static struct ruleset ruleset; + static int debug = 0; +-static struct syslog_data sdata = SYSLOG_DATA_INIT; + + static sfsistat cb_connect(SMFICTX *ctx, char *name, _SOCK_ADDR *sa); + static sfsistat cb_helo(SMFICTX *ctx, char *arg); +@@ -378,7 +377,7 @@ + if (vasprintf(&msg, fmt, ap) != -1) { + if (debug) + printf("%s\n", msg); +- syslog_r(priority, &sdata, "%s", msg); ++ syslog(priority, "%s", msg); + free(msg); + } + va_end(ap); +@@ -411,7 +413,7 @@ + sfsistat r = MI_FAILURE; + + tzset(); +- openlog_r("milter-regex", LOG_PID | LOG_NDELAY, LOG_DAEMON, &sdata); ++ openlog("milter-regex", LOG_PID | LOG_NDELAY, LOG_DAEMON); + + while ((ch = getopt(argc, argv, "dc:p:")) != -1) { + switch (ch) { |