Do not close the (main)_log, if we do not see a chance to open it again.
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Fri, 23 Apr 2021 20:41:57 +0000 (22:41 +0200)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Thu, 24 Jun 2021 19:46:58 +0000 (21:46 +0200)
commit28d2eab1414ef8d20ff0fde7026aa52fd01ef795
treee31bc611e35e65da1acecbbf069aa442af8a5725
parent060cf1e3c9a0a6960b771cdff6f0a5a2ca9b114c
Do not close the (main)_log, if we do not see a chance to open it again.

The process doing local deliveries runs as an unprivileged user. If this
process needs to log failures or warnings (as caused by the
is_tainting2() function), it can't re-open the main_log and just exits.

(cherry picked from commit 235c7030ee9ee1c1aad507786506a470b580bfe2)
src/src/log.c
src/src/transports/appendfile.c