]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Quota: If quota root has unwanted parameters, log an error and die.
authorTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2008 10:16:08 +0000 (13:16 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2008 10:16:08 +0000 (13:16 +0300)
--HG--
branch : HEAD

src/plugins/quota/quota.c

index 2470ba007ddffb6ef31118d9db9dd164cbd39fd9..dcebdce3bfb1c73b2a001e5826850423713b9614 100644 (file)
@@ -142,6 +142,13 @@ struct quota_root *quota_root_init(struct quota *quota, const char *root_def)
                        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;
 }