]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-fs: fs-metawrap stat() error handling improvement.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 4 May 2016 15:34:59 +0000 (18:34 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 4 May 2016 15:34:59 +0000 (18:34 +0300)
commita9be54bbbd815e0d2cfe1cd55e101802fb770a45
tree36952b5e1b7e8456c08fc99025935b8c547f48dc
parent07b3a7d8143c083c554e3169c672dacf068eeeb6
lib-fs: fs-metawrap stat() error handling improvement.

We can't just treat i_stream_get_size() returning 0 as the reason being
istream is async and not fully read. It might be, but it might also be
because of other reasons. And since we're closing the istream we couldn't
even properly finish up the async handling. So for now just return an
error if we see this happening.
src/lib-fs/fs-metawrap.c