# HG changeset patch # User Timo Sirainen # Date 1090349143 -10800 # Node ID d16f7c305e5733ec69168233d88d5e61cbce9cf4 # Parent 52ff483dc7f789248d6ca9fb2a5f03cde6facc1b Added error checking diff -r 52ff483dc7f7 -r d16f7c305e57 src/lib-storage/index/mbox/mbox-storage.c --- 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)