dovecot: Ignore ESTALE errors.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 16 05:20:51 EET 2007
details: http://hg.dovecot.org/dovecot/rev/766250fcedd8
changeset: 6817:766250fcedd8
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 16 05:20:31 2007 +0200
description:
Ignore ESTALE errors.
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/lib/ioloop-notify-dn.c | 4 +++-
diffs (14 lines):
diff -r 8573124a89b3 -r 766250fcedd8 src/lib/ioloop-notify-dn.c
--- a/src/lib/ioloop-notify-dn.c Fri Nov 16 05:11:42 2007 +0200
+++ b/src/lib/ioloop-notify-dn.c Fri Nov 16 05:20:31 2007 +0200
@@ -88,7 +88,9 @@ enum io_notify_result io_add_notify(cons
fd = open(path, O_RDONLY);
if (fd == -1) {
- if (errno != ENOENT)
+ /* ESTALE could happen with NFS. Don't bother giving an error
+ message then. */
+ if (errno != ENOENT && errno != ESTALE)
i_error("open(%s) for dnotify failed: %m", path);
return IO_NOTIFY_NOTFOUND;
}
More information about the dovecot-cvs
mailing list