[dovecot/core] 5df4db: lib: Add o_stream_flush_parent()

GitHub noreply at github.com
Wed Nov 1 02:30:11 EET 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 5df4dbc38d7b7d54cba35a2c258366e1d4bac3c8
      https://github.com/dovecot/core/commit/5df4dbc38d7b7d54cba35a2c258366e1d4bac3c8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib/ostream-private.h
    M src/lib/ostream.c

  Log Message:
  -----------
  lib: Add o_stream_flush_parent()


  Commit: 8109f3187f5ece5565de1813209af42dc7bb768b
      https://github.com/dovecot/core/commit/8109f3187f5ece5565de1813209af42dc7bb768b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib-compression/ostream-bzlib.c
    M src/lib-compression/ostream-lz4.c
    M src/lib-compression/ostream-lzma.c
    M src/lib-compression/ostream-zlib.c
    M src/lib-dcrypt/ostream-encrypt.c
    M src/lib-mail/ostream-dot.c
    M src/lib/ostream-escaped.c
    M src/lib/ostream-failure-at.c
    M src/lib/ostream.c
    M src/plugins/mail-filter/ostream-ext-filter.c

  Log Message:
  -----------
  global: Use o_stream_flush_parent()


  Commit: d6193a892452ae87548f5745dada01f82816765d
      https://github.com/dovecot/core/commit/d6193a892452ae87548f5745dada01f82816765d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib/ostream-private.h
    M src/lib/ostream.c
    M src/lib/ostream.h

  Log Message:
  -----------
  lib: Add o_stream_set_finish_also_parent() and _finish_via_child()

These allow controlling on both directions whether o_stream_finish() should
be finishing the parent stream. If either one is set to FALSE, the parent
stream isn't finished. Which one of these to use depends on the situation.


  Commit: 8a4a0ef8264d95ffb2ba8f6f109f94ea7f3454e8
      https://github.com/dovecot/core/commit/8a4a0ef8264d95ffb2ba8f6f109f94ea7f3454e8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib/connection.c

  Log Message:
  -----------
  lib: connection - Use o_stream_set_finish_via_child(FALSE)

This allows o_stream_finish() calls on child streams without closing this
parent stream. Since the stream has no error checking by default anyway,
this allows the connection stream to be used more easily.


  Commit: 03e102ddccaae9e944c503d4269de755731798e8
      https://github.com/dovecot/core/commit/03e102ddccaae9e944c503d4269de755731798e8
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib-fs/fs-metawrap.c

  Log Message:
  -----------
  lib-fs: fs-metawrap - Don't try to write to an already finished ostream

Fixes a crash after recent changes when trying to write an empty file via
fs-metawrap.


  Commit: 6519bf9a290ff036ede005ac66b1a339e5931c26
      https://github.com/dovecot/core/commit/6519bf9a290ff036ede005ac66b1a339e5931c26
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib-mail/ostream-dot.c

  Log Message:
  -----------
  lib-mail: ostream-dot - Set o_stream_set_finish_also_parent(FALSE) by default

ostream-dot is always used inside another ostream to implement some kind of
data escaping. The ostream-dot always has to be finished to write the "."
line, but the caller never wants it to finish the parent stream.


  Commit: 8e8b9d01d454fc3dc81dbe3fd1cca772d1d2c381
      https://github.com/dovecot/core/commit/8e8b9d01d454fc3dc81dbe3fd1cca772d1d2c381
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib-compression/test-compression.c

  Log Message:
  -----------
  lib-compression: Fix unit test to not crash


  Commit: a36cac101d7c4d43a62bbdba15302567d5d90836
      https://github.com/dovecot/core/commit/a36cac101d7c4d43a62bbdba15302567d5d90836
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/lib-storage/index/dbox-common/dbox-file.c

  Log Message:
  -----------
  dbox: Don't finish dbox's ostream when mail is saved

Fixes assert-crash when saving mail when using zlib plugin.


  Commit: 103e63c7d2394f848f989b3d1d78572b0d8593dc
      https://github.com/dovecot/core/commit/103e63c7d2394f848f989b3d1d78572b0d8593dc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2017-11-01 (Wed, 01 Nov 2017)

  Changed paths:
    M src/doveadm/client-connection-tcp.c

  Log Message:
  -----------
  doveadm-server: Deinitialize log proxying before closing SSL iostream

Otherwise the SSL iostream destroying may trigger debug/error logging,
which attempts to proxy logs when the stream is already closed. This
caused a panic.


Compare: https://github.com/dovecot/core/compare/b9b86a27aaf9...103e63c7d239


More information about the dovecot-cvs mailing list