[dovecot/core | refs/heads/master-2.3] ae72b863: fs-posix: fs_read_stream() - Don't close file's fd

noreply at dovecot.org noreply at dovecot.org
Thu Feb 28 08:00:14 EET 2019


  Branch: refs/heads/master-2.3
  Home:   https://github.com/dovecot/core
  Commit: ae72b863882cea401fa67ddb0be4549cba8b83de
      https://github.com/dovecot/core/commit/ae72b863882cea401fa67ddb0be4549cba8b83de
  Author: Timo Sirainen <timo.sirainen at open-xchange.com>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

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

  Log Message:
  -----------
  fs-posix: fs_read_stream() - Don't close file's fd

This is especially important with newly created files, because they may
still be accessed after reading. The next file access attempt after
fs_read_stream() might cause the file to be recreated and crash.

Fixes:
Panic: file fs-posix.c: line 252 (fs_posix_create): assertion failed: (file->temp_path == NULL)

  Patch: https://github.com/dovecot/core/compare/267c247fba5a...ae72b863882c.patch


More information about the dovecot-cvs mailing list