dovecot-2.1: file_dotlock: And fix to previous change..

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 23 15:02:10 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/df74f0052707
changeset: 13551:df74f0052707
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 23 15:01:57 2011 +0300
description:
file_dotlock: And fix to previous change..

diffstat:

 src/lib/file-dotlock.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r fecd095394b6 -r df74f0052707 src/lib/file-dotlock.c
--- a/src/lib/file-dotlock.c	Fri Sep 23 15:01:23 2011 +0300
+++ b/src/lib/file-dotlock.c	Fri Sep 23 15:01:57 2011 +0300
@@ -713,7 +713,7 @@
 	/* with NFS t1 may have been looked up from local cache.
 	   allow it to be a little bit different. */
 	diff = t1 > t2 ? t1-t2 : t2-t1;
-	return diff <= FILE_DOTLOCK_MAX_STAT_MTIME_DIFF;
+	return diff > FILE_DOTLOCK_MAX_STAT_MTIME_DIFF;
 }
 
 int file_dotlock_delete(struct dotlock **dotlock_p)


More information about the dovecot-cvs mailing list