[dovecot-cvs] dovecot/src/plugins/quota quota-maildir.c, 1.9.2.6, 1.9.2.7

tss at dovecot.org tss at dovecot.org
Thu Dec 28 16:27:49 UTC 2006


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv32286/src/plugins/quota

Modified Files:
      Tag: branch_1_0
	quota-maildir.c 
Log Message:
Added dotlock_use_excl setting.


Index: quota-maildir.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-maildir.c,v
retrieving revision 1.9.2.6
retrieving revision 1.9.2.7
diff -u -d -r1.9.2.6 -r1.9.2.7
--- quota-maildir.c	17 Dec 2006 16:34:22 -0000	1.9.2.6
+++ quota-maildir.c	28 Dec 2006 16:27:47 -0000	1.9.2.7
@@ -47,7 +47,7 @@
 
 extern struct quota_backend quota_backend_maildir;
 
-const struct dotlock_settings dotlock_settings = {
+struct dotlock_settings dotlock_settings = {
 	MEMBER(temp_prefix) NULL,
 	MEMBER(lock_suffix) NULL,
 
@@ -228,6 +228,8 @@
 
 	i_assert(root->fd == -1);
 
+	dotlock_settings.use_dotlock_excl =
+		(storage->flags & MAIL_STORAGE_FLAG_DOTLOCK_USE_EXCL) != 0;
 	fd = file_dotlock_open(&dotlock_settings, path,
 			       DOTLOCK_CREATE_FLAG_NONBLOCK, &dotlock);
 	if (fd == -1) {



More information about the dovecot-cvs mailing list