Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6817:766250fcedd8 HEAD
Ignore ESTALE errors.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 16 Nov 2007 05:20:31 +0200 |
parents | 8573124a89b3 |
children | f637a8a1aae7 |
files | src/lib/ioloop-notify-dn.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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; }