]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
main: conditionalize fixup_environment() internally
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 16:54:20 +0000 (17:54 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 19:52:28 +0000 (20:52 +0100)
commit43db615ba4773ca5ef2800c2ad48d5816d535352
tree4e10b9a8d1bec5a99f0e252465c576bc184a1f1f
parent2d77603838b9dd86e6f8119c53df319a8606cf41
main: conditionalize fixup_environment() internally

This code is executed before we parse command line/configuration
parameters, hence let's not use arg_system to figure our how to clean up
things, but instead PID == 1. Let's move that check inside of the
function, to make things a bit more robust abstract from the outside.

Also, let's add a log message about this, that was so far missing.
src/core/main.c