Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib-storage/index/maildir/maildir-sync.c @ 8997:cceea391d04d HEAD
maildir: Don't assert-crash if we have no read-access to the Maildir.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 30 Apr 2009 18:49:26 -0400 |
parents | 88aeadb32151 |
children | 0aa17f3e4a6d |
comparison
equal
deleted
inserted
replaced
8996:c34010571c02 | 8997:cceea391d04d |
---|---|
777 return -1; | 777 return -1; |
778 } | 778 } |
779 ret = maildir_uidlist_sync_init(ctx->mbox->uidlist, sync_flags | | 779 ret = maildir_uidlist_sync_init(ctx->mbox->uidlist, sync_flags | |
780 MAILDIR_UIDLIST_SYNC_NOLOCK, | 780 MAILDIR_UIDLIST_SYNC_NOLOCK, |
781 &ctx->uidlist_sync_ctx); | 781 &ctx->uidlist_sync_ctx); |
782 i_assert(ret > 0); | 782 if (ret <= 0) { |
783 i_assert(ret != 0); | |
784 return -1; | |
785 } | |
783 | 786 |
784 if (storage->callbacks->notify_no != NULL) { | 787 if (storage->callbacks->notify_no != NULL) { |
785 storage->callbacks->notify_no(&ctx->mbox->ibox.box, | 788 storage->callbacks->notify_no(&ctx->mbox->ibox.box, |
786 "Internal mailbox synchronization failure, " | 789 "Internal mailbox synchronization failure, " |
787 "showing only old mails.", | 790 "showing only old mails.", |