dovecot-1.1: dbox: Don't crash if MAILBOXDIR isn't set.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 25 00:52:59 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/275be458d747
changeset: 8223:275be458d747
user: Timo Sirainen <tss at iki.fi>
date: Tue Mar 24 18:52:53 2009 -0400
description:
dbox: Don't crash if MAILBOXDIR isn't set.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/dbox/dbox-storage.c | 3 ++-
diffs (13 lines):
diff -r b5ac65166176 -r 275be458d747 src/lib-storage/index/dbox/dbox-storage.c
--- a/src/lib-storage/index/dbox/dbox-storage.c Tue Mar 24 18:04:04 2009 -0400
+++ b/src/lib-storage/index/dbox/dbox-storage.c Tue Mar 24 18:52:53 2009 -0400
@@ -73,7 +73,8 @@ dbox_get_list_settings(struct mailbox_li
error_r) < 0)
return -1;
- if (*list_set->mailbox_dir_name == '\0' &&
+ if ((list_set->mailbox_dir_name == NULL ||
+ *list_set->mailbox_dir_name == '\0') &&
list_set->subscription_fname == subs_fname)
list_set->subscription_fname = DBOX_OLD_SUBSCRIPTION_FILE_NAME;
return 0;
More information about the dovecot-cvs
mailing list