changeset 9432:439e14ff1467 HEAD

quota-fs: If mount=path isn't specified, don't fail with multiple quota roots.
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Oct 2009 13:51:00 -0400
parents a8254e6d5ada
children 6c6460531514
files src/plugins/quota/quota-fs.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c	Thu Oct 15 13:20:44 2009 -0400
+++ b/src/plugins/quota/quota-fs.c	Thu Oct 15 13:51:00 2009 -0400
@@ -712,6 +712,9 @@
 	const char *mailbox_path;
 	bool is_file, match;
 
+	if (root->storage_mount_path == NULL)
+		return TRUE;
+
 	mailbox_path = mail_storage_get_mailbox_path(box->storage, box->name,
 						     &is_file);
 	if (stat(mailbox_path, &mst) < 0) {