shared: log error when execve fail
authorMauri de Souza Meneguzzo <mauri870@gmail.com>
Tue, 25 Jun 2024 02:47:15 +0000 (23:47 -0300)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jul 2024 09:12:35 +0000 (10:12 +0100)
commita408d4453145621902b9a3ef78a552f83b09bd8d
tree51f4e15069426e53dab311332b328e437c39deaf
parente261f27ef0022227ac28d8915cff72b7c7eb0510
shared: log error when execve fail

If there is an error with the execv call in fork_agent the
program exits without any meaningful log message. Log the
command and errno so the user gets more information about
the failure.

Fixes: #33418

Signed-off-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
src/shared/exec-util.c
src/shared/polkit-agent.c