[Dovecot] Deleting metadata smashes file dovecot.dict

Timo Sirainen tss at iki.fi
Tue Aug 21 13:22:04 EEST 2012


On 21.8.2012, at 13.10, Andre Gröbe wrote:

> [tss at iki.fi; Mo 20 Aug 2012 20:22:58 CEST]
>>> Is there a fix so dovecot reads a line until EOL or EOF (if this is the real reason)?
>> 
>> Without having actually looked at the code, I'd guess you can just replace IO_BLOCK_SIZE
> > with (size_t)-1.
> 
> Unfortunatly this can't be a fix because in file_set_size() dovecot defines an array 'char block[IO_BLOCK_SIZE]'. On the other hand the default block size is predestined for file ops.

Does the attached patch fix it? (not a very good fix)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 449 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20120821/bdcf3b33/attachment-0004.obj>


More information about the dovecot mailing list