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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/3c2f9e53eb5c
changeset: 8081:3c2f9e53eb5c
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 7200ae88984b -r 3c2f9e53eb5c 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
@@ -105,8 +105,10 @@ struct quota_root *quota_root_init(struc
 	}
 
 	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 = backend->v.alloc();
 	root->quota = quota;


More information about the dovecot-cvs mailing list