]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: add missing error_message cases (#6911)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Fri, 10 Nov 2017 14:57:52 +0000 (14:57 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Nov 2017 14:57:52 +0000 (15:57 +0100)
commit9b9881d75b712ea813c46e01346e023523f8abe2
tree8618be70c057d955cebde21cdf19c6b5883d7d53
parent67595fce2d69f2d295f2fa12e318187ae88f1b80
core: add missing error_message cases (#6911)

We neglected to set error_message for errors which occur _after_ the
`finish` label.  These fatal errors only happen in paths where `finish`
was reached successfully, i.e. error_message has not already been set
(and this analysis is simple enough that this need not cause too much
headaches.  Also our new assignments to error_message come immediately
after execve() calls, which would have lost the error_message if it had
been set).

Also print a status message when we fail to exec init, otherwise the only
sign the user will see is `# ` :).

This addresses the lack of error messages pointed out in issue #6827.
src/core/emergency-action.c
src/core/main.c