aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2012-11-15 13:06:44 +0100
committerGilles Chehade <gilles@poolp.org>2012-11-15 13:06:44 +0100
commit858b99129dc67bc25715967b4889826456d93dbb (patch)
tree09073fff32834338af168fba369255b50ba413f5
parent- cleanup in the map code: (diff)
downloadOpenSMTPD-858b99129dc67bc25715967b4889826456d93dbb.tar.xz
OpenSMTPD-858b99129dc67bc25715967b4889826456d93dbb.zip
- "file" becomes an alias to static map
-rw-r--r--smtpd/map.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/smtpd/map.c b/smtpd/map.c
index 1d4cf5ec..05473b3f 100644
--- a/smtpd/map.c
+++ b/smtpd/map.c
@@ -37,16 +37,14 @@
struct map_backend *map_backend_lookup(const char *);
extern struct map_backend map_backend_static;
-
extern struct map_backend map_backend_db;
-/*extern struct map_backend map_backend_file;*/
static objid_t last_map_id = 0;
struct map_backend *
map_backend_lookup(const char *source)
{
- if (!strcmp(source, "static"))
+ if (!strcmp(source, "static") || !strcmp(source, "file"))
return &map_backend_static;
if (!strcmp(source, "db"))
return &map_backend_db;