]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
virtual: Open the dovecot-virtual as readonly, we don't need to write to it.
authorTimo Sirainen <tss@iki.fi>
Sat, 2 May 2009 18:41:31 +0000 (14:41 -0400)
committerTimo Sirainen <tss@iki.fi>
Sat, 2 May 2009 18:41:31 +0000 (14:41 -0400)
--HG--
branch : HEAD

src/plugins/virtual/virtual-config.c

index 94b57204d7f91701b271973e27b2f791e7444d7b..1c08135b1913cd45ca966968f870f7c1beb5fe48 100644 (file)
@@ -303,7 +303,7 @@ int virtual_config_read(struct virtual_mailbox *mbox)
        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,