Mercurial > dovecot > core-2.2
changeset 2344:d16f7c305e57 HEAD
Added error checking
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 20 Jul 2004 21:45:43 +0300 |
parents | 52ff483dc7f7 |
children | 4c9e46b5dcfd |
files | src/lib-storage/index/mbox/mbox-storage.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-storage.c Tue Jul 20 20:55:03 2004 +0300 +++ b/src/lib-storage/index/mbox/mbox-storage.c Tue Jul 20 21:45:43 2004 +0300 @@ -389,6 +389,10 @@ fd = open(storage->inbox_path, O_RDWR | O_CREAT | O_EXCL, 0660); if (fd != -1) (void)close(fd); + else if (errno != EEXIST) { + mail_storage_set_critical(storage, + "open(%s, O_CREAT) failed: %m", storage->inbox_file); + } /* make sure the index directories exist */ if (create_mbox_index_dirs(storage, "INBOX") < 0)