Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/plugins/quota/quota-fs.c @ 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 | fe063e0d7109 |
children | 00cd9aacd03c |
comparison
equal
deleted
inserted
replaced
9431:a8254e6d5ada | 9432:439e14ff1467 |
---|---|
710 struct fs_quota_root *root = (struct fs_quota_root *)_root; | 710 struct fs_quota_root *root = (struct fs_quota_root *)_root; |
711 struct stat mst, rst; | 711 struct stat mst, rst; |
712 const char *mailbox_path; | 712 const char *mailbox_path; |
713 bool is_file, match; | 713 bool is_file, match; |
714 | 714 |
715 if (root->storage_mount_path == NULL) | |
716 return TRUE; | |
717 | |
715 mailbox_path = mail_storage_get_mailbox_path(box->storage, box->name, | 718 mailbox_path = mail_storage_get_mailbox_path(box->storage, box->name, |
716 &is_file); | 719 &is_file); |
717 if (stat(mailbox_path, &mst) < 0) { | 720 if (stat(mailbox_path, &mst) < 0) { |
718 if (errno != ENOENT) | 721 if (errno != ENOENT) |
719 i_error("stat(%s) failed: %m", mailbox_path); | 722 i_error("stat(%s) failed: %m", mailbox_path); |