diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-10-14 11:58:24 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-10-14 11:58:24 +0000 |
commit | 9c4a800e568b41a715338f7828b289638231c1d3 (patch) | |
tree | 569f6977d85151c57cd0dfc2da7a5eda8f4f70b4 /usr.sbin/smtpd/smtpd.c | |
parent | 48f944375b479b7ec9d8d8ac55afc4889d18f95f (diff) |
introduce map_file.c which will deprecate map_stdio.c
The idea is to have a file-backed map but to have smtpd(8) cache the maps
so that it cannot be partially read if edited while mail is received. The
file is read and converted to a static map (map_static.c), changes aren't
visible to smtpd until an explicit: smtpctl update map which reads file,
builds a new static map and invalidates the former.
partial-read issue discussed with beck@ and halex@
idea to convert internally to a static map by eric@
diff ok eric@ and chl@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.c')
-rw-r--r-- | usr.sbin/smtpd/smtpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 4d312e90f15..ae52a333efa 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.175 2012/10/11 21:55:16 gilles Exp $ */ +/* $OpenBSD: smtpd.c,v 1.176 2012/10/14 11:58:23 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -1260,6 +1260,7 @@ imsg_to_str(int type) CASE(IMSG_CONF_FILTER); CASE(IMSG_CONF_END); + CASE(IMSG_LKA_UPDATE_MAP); CASE(IMSG_LKA_MAIL); CASE(IMSG_LKA_RCPT); CASE(IMSG_LKA_SECRET); |