dovecot-1.1: Quota: If quota root has unwanted parameters, log a...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 12 13:16:44 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/33c9cbb520d0
changeset: 7643:33c9cbb520d0
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 12 13:16:08 2008 +0300
description:
Quota: If quota root has unwanted parameters, log an error and die.

diffstat:

1 file changed, 7 insertions(+)
src/plugins/quota/quota.c |    7 +++++++

diffs (17 lines):

diff -r 3ea1b9bbaa1f -r 33c9cbb520d0 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Thu Jun 12 09:44:11 2008 +0300
+++ b/src/plugins/quota/quota.c	Thu Jun 12 13:16:08 2008 +0300
@@ -141,6 +141,13 @@ struct quota_root *quota_root_init(struc
 		if (backend->v.init(root, args) < 0) {
 			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;


More information about the dovecot-cvs mailing list