dovecot-1.2: quota: Log a bit more when "Unknown backend" error ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jan 9 20:57:45 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/63ec83d811bb
changeset: 8608:63ec83d811bb
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jan 09 13:57:30 2009 -0500
description:
quota: Log a bit more when "Unknown backend" error happens.

diffstat:

1 file changed, 4 insertions(+), 2 deletions(-)
src/plugins/quota/quota.c |    6 ++++--

diffs (16 lines):

diff -r 04816f18bf18 -r 63ec83d811bb src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Fri Jan 09 13:14:04 2009 -0500
+++ b/src/plugins/quota/quota.c	Fri Jan 09 13:57:30 2009 -0500
@@ -99,8 +99,10 @@ quota_root_settings_init(struct quota_se
 	}
 
 	backend = quota_backend_find(backend_name);
-	if (backend == NULL)
-		i_fatal("Unknown quota backend: %s", backend_name);
+	if (backend == NULL) {
+		i_error("Unknown quota backend: %s", backend_name);
+		return NULL;
+	}
 	
 	root_set = p_new(quota_set->pool, struct quota_root_settings, 1);
 	root_set->set = quota_set;


More information about the dovecot-cvs mailing list