]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: o_stream_uncork() - call o_stream_nflush() instead of o_stream_flush()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 27 Oct 2017 20:31:56 +0000 (23:31 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Mon, 30 Oct 2017 11:04:53 +0000 (13:04 +0200)
commit23c8c511f98924acfc7048e9dc4ccc982c34e320
tree8683962b5bb6c06dd7467e2f5eca7c6e7af35a8d
parent7e41ef20f6e39649f620fc4e4d21924822ee3682
lib: o_stream_uncork() - call o_stream_nflush() instead of o_stream_flush()

Otherwise flush errors may be unintentionally ignored. This change requires
that all the o_stream_uncork() callers must call o_stream_nfinish()
afterwards, unless the ostream is set to ignore errors.
src/lib/ostream-file.c
src/lib/ostream.c
src/lib/ostream.h