[dovecot-cvs] dovecot/src/lib-storage mail-storage.c,1.49,1.50
cras at dovecot.org
cras at dovecot.org
Sun Apr 2 12:18:56 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv17420/src/lib-storage
Modified Files:
mail-storage.c
Log Message:
Changed the default lock_method back to fcntl. flock seems to be broken in
some systems..
Index: mail-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- mail-storage.c 22 Feb 2006 16:02:26 -0000 1.49
+++ mail-storage.c 2 Apr 2006 09:18:53 -0000 1.50
@@ -69,10 +69,10 @@
*flags_r |= MAIL_STORAGE_FLAG_SAVE_CRLF;
str = getenv("LOCK_METHOD");
- if (str == NULL || strcmp(str, "flock") == 0)
- *lock_method_r = MAIL_STORAGE_LOCK_FLOCK;
- else if (strcmp(str, "fcntl") == 0)
+ if (str == NULL || strcmp(str, "fcntl") == 0)
*lock_method_r = MAIL_STORAGE_LOCK_FCNTL;
+ else if (strcmp(str, "flock") == 0)
+ *lock_method_r = MAIL_STORAGE_LOCK_FLOCK;
else if (strcmp(str, "dotlock") == 0)
*lock_method_r = MAIL_STORAGE_LOCK_DOTLOCK;
else
More information about the dovecot-cvs
mailing list