[dovecot-cvs] dovecot/src/lib-index mail-index-lock.c, 1.54, 1.54.2.1

tss at dovecot.org tss at dovecot.org
Tue Oct 24 17:10:27 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv24485

Modified Files:
      Tag: branch_1_0
	mail-index-lock.c 
Log Message:
flock isn't anymore the default locking method, so don't bother giving a
special error message if it fails.



Index: mail-index-lock.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-lock.c,v
retrieving revision 1.54
retrieving revision 1.54.2.1
diff -u -d -r1.54 -r1.54.2.1
--- mail-index-lock.c	17 Feb 2006 23:36:38 -0000	1.54
+++ mail-index-lock.c	24 Oct 2006 16:10:25 -0000	1.54.2.1
@@ -111,16 +111,6 @@
 			   b) timeouted */
 			return 0;
 		}
-		if (errno == ENOLCK) {
-			/* Give a bit more helpful error message since this
-			   is the default locking method and it doesn't work
-			   with NFS. */
-			mail_index_set_error(index,
-				"flock() failed with file %s: %m "
-				"(see lock_method setting in config file)",
-				path);
-			return -1;
-		}
 		mail_index_file_set_syscall_error(index, path, "flock()");
 		return -1;
 #endif



More information about the dovecot-cvs mailing list