core: add more safety check
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 15:38:20 +0000 (16:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 19:52:28 +0000 (20:52 +0100)
commitfebf46a46ca9d3454abaeb7ebda1b5582bfcbca0
treeb4a8a18ac610c7cdefb1719ce59cc34bc8a43d5c
parent263162da6cbf75fa5dd0eb514f9313ecea9155d7
core: add more safety check

Let's make sure that if we are PID 1 we are invoked in ACTION_RUN mode,
and in arg_system mode, as well as the opposite.

Everything else is untested and probably not worth supporting hence
let's bail out early if people try anyway.
src/core/main.c