Skip to content
Commit dabf9f21 authored by Sergey Bugaev's avatar Sergey Bugaev Committed by Zbigniew Jędrzejewski-Szmek
Browse files

log: protect errno in log_open()

Commit 0b1f3c76 has introduced log_open()
calls after exec fails post-fork. However, the log_open() call itself could
change the value of errno, which, for me, manifested in:

$ coredumpctl gdb
...
Failed to invoke gdb: Success

Fix this by using PROTECT_ERRNO in log_open().

(cherry picked from commit 0e557eef)
parent e60fe377
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment