diff options
| author | 2008-12-18 15:19:33 +0000 | |
|---|---|---|
| committer | 2008-12-18 15:19:33 +0000 | |
| commit | 96f923bcac504fe43f0069848918f194852a2ca9 (patch) | |
| tree | 5a877df343c590c99f0429cd975634fdb682f971 | |
| parent | Cleanup /incoming before handling each MAIL FROM. (diff) | |
| download | wireguard-openbsd-96f923bcac504fe43f0069848918f194852a2ca9.tar.xz wireguard-openbsd-96f923bcac504fe43f0069848918f194852a2ca9.zip | |
Don't err() on blank lines.
ok gilles@
| -rw-r--r-- | usr.sbin/smtpd/makemap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c index 9772f545386..59c46f0cf2f 100644 --- a/usr.sbin/smtpd/makemap.c +++ b/usr.sbin/smtpd/makemap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makemap.c,v 1.4 2008/12/17 23:09:23 jacekm Exp $ */ +/* $OpenBSD: makemap.c,v 1.5 2008/12/18 15:19:33 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -162,6 +162,12 @@ parse_entry(char *line, size_t len, size_t lineno) DBT key; DBT val; + /* Blank lines are OK. */ + while (isspace(*line)) + line++; + if (*line == '\0') + return 1; + name = line; switch (mode) { case P_MAKEMAP: |
