[dovecot/core] 4f2278: lib: istream-sized - remove explicit i_error() log...

GitHub noreply at github.com
Fri Dec 23 19:30:11 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 4f22781ec4cd5bc1bfdfe856cbaed40b2ab137f6
      https://github.com/dovecot/core/commit/4f22781ec4cd5bc1bfdfe856cbaed40b2ab137f6
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib/istream-sized.c

  Log Message:
  -----------
  lib: istream-sized - remove explicit i_error() logging

The stream_errno is set, so it's the caller's responsibility to log the
error. There's no need to log it twice.


  Commit: 574d36db88f15662529fb65da6fc8c5e4c8f12fa
      https://github.com/dovecot/core/commit/574d36db88f15662529fb65da6fc8c5e4c8f12fa
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib/istream-sized.c
    M src/lib/istream-sized.h
    A src/lib/test-istream-sized.c

  Log Message:
  -----------
  lib: istream-sized - set stream_errno=EPIPE if stream is too small


  Commit: c328d220858bc7cf7e67987e7862eb0b7bf8671d
      https://github.com/dovecot/core/commit/c328d220858bc7cf7e67987e7862eb0b7bf8671d
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib/istream-sized.c

  Log Message:
  -----------
  lib: istream-sized - consistently set stream_errno=EINVAL if stream is too large

Earlier it was sometimes done and sometimes not, depending on whether the
parent istream happened to stop at the expected boundary.


  Commit: c81ec7de302a1c38f4ea27a82dad3b2f631701d9
      https://github.com/dovecot/core/commit/c81ec7de302a1c38f4ea27a82dad3b2f631701d9
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-12-23 (Fri, 23 Dec 2016)

  Changed paths:
    M src/lib/Makefile.am
    M src/lib/test-lib.inc

  Log Message:
  -----------
  lib: Add unit test for istream-sized


Compare: https://github.com/dovecot/core/compare/b7cabbb8fd1d...c81ec7de302a


More information about the dovecot-cvs mailing list