Mercurial > dovecot > core-2.2
changeset 13562:64d3f748a612
maildir: Handle open() failing with ESTALE.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 30 Sep 2011 15:54:20 +0300 |
parents | e62621d28591 |
children | 690f60827f59 |
files | src/lib-storage/index/maildir/maildir-mail.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-mail.c Tue Sep 27 18:57:14 2011 +0300 +++ b/src/lib-storage/index/maildir/maildir-mail.c Fri Sep 30 15:54:20 2011 +0300 @@ -2,6 +2,7 @@ #include "lib.h" #include "istream.h" +#include "nfs-workarounds.h" #include "index-mail.h" #include "maildir-storage.h" #include "maildir-filename.h" @@ -22,7 +23,7 @@ do_open(struct maildir_mailbox *mbox, const char *path, struct maildir_open_context *ctx) { - ctx->fd = open(path, O_RDONLY); + ctx->fd = nfs_safe_open(path, O_RDONLY); if (ctx->fd != -1) { ctx->path = i_strdup(path); return 1;