# HG changeset patch # User Timo Sirainen # Date 1317387260 -10800 # Node ID 64d3f748a6122fb68b64e5a840f4617823ef429b # Parent e62621d28591fc831c9ce9ac262d5d830e75c4f6 maildir: Handle open() failing with ESTALE. diff -r e62621d28591 -r 64d3f748a612 src/lib-storage/index/maildir/maildir-mail.c --- 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;