dovecot-2.0: virtual: Open the dovecot-virtual as readonly, we d...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 4 04:12:47 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/10f2650ce56b
changeset: 9201:10f2650ce56b
user:      Timo Sirainen <tss at iki.fi>
date:      Sat May 02 14:41:31 2009 -0400
description:
virtual: Open the dovecot-virtual as readonly, we don't need to write to it.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/virtual/virtual-config.c |    2 +-

diffs (12 lines):

diff -r 493de7a6d411 -r 10f2650ce56b src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c	Fri May 01 17:15:31 2009 -0400
+++ b/src/plugins/virtual/virtual-config.c	Sat May 02 14:41:31 2009 -0400
@@ -303,7 +303,7 @@ int virtual_config_read(struct virtual_m
 	mbox->search_args_crc32 = (uint32_t)-1;
 
 	path = t_strconcat(mbox->path, "/"VIRTUAL_CONFIG_FNAME, NULL);
-	fd = open(path, O_RDWR);
+	fd = open(path, O_RDONLY);
 	if (fd == -1) {
 		if (errno == ENOENT) {
 			mail_storage_set_error(mbox->ibox.storage,


More information about the dovecot-cvs mailing list