]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: reorder systemd arguments on reexec
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 29 Jun 2023 11:31:19 +0000 (13:31 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 29 Jun 2023 21:20:41 +0000 (22:20 +0100)
commit06afda6b38d5d730fca3c65449096425933272bc
tree96f70dc16336d4671dae06de1bf0e669ee1eddd7
parent88d2bda8120dcc375a90e28b64de06b9646ab3b6
core: reorder systemd arguments on reexec

When reexecuting system let's put our arguments carrying deserialization
info first followed by any existing arguments to make sure they get
parsed in case we get weird stuff from the kernel cmdline (like --).

See: https://github.com/systemd/systemd/issues/28184
src/core/main.c
test/TEST-01-BASIC/test.sh