dovecot-1.2: virtual: Open the dovecot-virtual as readonly, we d...
dovecot at dovecot.org
dovecot at dovecot.org
Sat May 2 21:41:42 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/da37aa38ca89
changeset: 9011:da37aa38ca89
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 c2d55b298ec8 -r da37aa38ca89 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