Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7837:e557042b2c1c HEAD
Quota: If quota root has unwanted parameters, log an error and die.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 12 Jun 2008 13:16:08 +0300 |
parents | e019f0152775 |
children | 1b1fe3d50079 |
files | src/plugins/quota/quota.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/quota/quota.c Thu Jun 12 08:39:46 2008 +0300 +++ b/src/plugins/quota/quota.c Thu Jun 12 13:16:08 2008 +0300 @@ -142,6 +142,13 @@ quota_root_deinit(&root); return NULL; } + } else if (args != NULL) { + while (*args == ' ') args++; + if (*args != '\0') { + i_fatal("Quota root %s: backend %s " + "doesn't take any parameters (used: %s)", + root->name, backend_name, args); + } } return root; }