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

noreply at dovecot.org noreply at dovecot.org
Tue Feb 26 10:00:11 EET 2019


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 1abd55c07ff6f8b5bc652eff50e8977a77c2ddb9
      https://github.com/dovecot/core/commit/1abd55c07ff6f8b5bc652eff50e8977a77c2ddb9
  Author: Timo Sirainen <timo.sirainen at open-xchange.com>
  Date:   2019-02-25 (Mon, 25 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/c802e1c2caad...1abd55c07ff6.patch


More information about the dovecot-cvs mailing list