dovecot-2.1: maildir: Handle open() failing with ESTALE.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 30 15:46:02 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/64d3f748a612
changeset: 13562:64d3f748a612
user: Timo Sirainen <tss at iki.fi>
date: Fri Sep 30 15:54:20 2011 +0300
description:
maildir: Handle open() failing with ESTALE.
diffstat:
src/lib-storage/index/maildir/maildir-mail.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
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;
More information about the dovecot-cvs
mailing list