[dovecot/core] 826f16: lib-fs: Fixed multiple concurrent fs_read_stream()...

GitHub noreply at github.com
Thu May 12 18:00:20 UTC 2016


  Branch: refs/heads/master-2.2
  Home:   https://github.com/dovecot/core
  Commit: 826f16c0cd4c1ea667a441f45caf48e913bac906
      https://github.com/dovecot/core/commit/826f16c0cd4c1ea667a441f45caf48e913bac906
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-05-12 (Thu, 12 May 2016)

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

  Log Message:
  -----------
  lib-fs: Fixed multiple concurrent fs_read_stream() calls

Return a new limit-istream, so each istream can have its own independent
offset.


  Commit: d375835dd9fdff87c051aa646e54a1f8693fe7bc
      https://github.com/dovecot/core/commit/d375835dd9fdff87c051aa646e54a1f8693fe7bc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-05-12 (Thu, 12 May 2016)

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

  Log Message:
  -----------
  lib-fs: Allow multiple fs_read_stream() calls to seekable istreams.

This fixes for example calling fs_default_copy() for an istream which was
already opened:

Panic: file fs-api.c: line 528 (fs_read_stream): assertion failed: (!file->istream_open)


Compare: https://github.com/dovecot/core/compare/9f300ec1af1f...d375835dd9fd


More information about the dovecot-cvs mailing list