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>
Sat, 24 Apr 2021 21:10:53 +0000 (23:10 +0200)
commit235c7030ee9ee1c1aad507786506a470b580bfe2
tree71b845bae292b9230aa537c286dc60e82f514bed
parent2c9869d0622cc690b424cc74166d4a8393017ece
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.
src/src/log.c
src/src/transports/appendfile.c