[dovecot/core] 033e31: lib: safe_mkstemp*() didn't always truncate prefix...

GitHub noreply at github.com
Thu Sep 15 09:00:14 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 033e315cc9396332a09b98bee7824b8e6641c2fc
      https://github.com/dovecot/core/commit/033e315cc9396332a09b98bee7824b8e6641c2fc
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M src/lib/safe-mkstemp.c

  Log Message:
  -----------
  lib: safe_mkstemp*() didn't always truncate prefix back to original on failure.

This caused repeated safe_mkstemp*() calls with the same prefix to keep
increasing its size. It probably didn't really break anything (unless it was
called enough many times to reach 255 filename length), but the filenames
were still confusingly ugly.




More information about the dovecot-cvs mailing list