]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: don't search PATH for telinit (#7770)
authorMike Gilbert <floppymaster@gmail.com>
Thu, 4 Jan 2018 12:14:20 +0000 (07:14 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Jan 2018 12:14:20 +0000 (13:14 +0100)
commit2fa645f1ccbbed95868b0f25017533c8de2bba2b
tree0350669f25904cfb3df77e164097f3b8daabd94b
parent3046b6db1d285a7aba2247b48f0cc98372defab6
meson: don't search PATH for telinit (#7770)

On a typical system running systemd, the telinit in PATH is very likely to be a symlink
to systemctl. Setting TELINIT to this may result in an infinite recursion if telinit is called
and sd_booted() == 0. This may commonly occur in a chroot environment.

Bug: https://bugs.gentoo.org/642724

[zj:
The path was originally hardcoded as "/lib/upstart/telinit", but was made configurable without
changing the default in 4ad61fd1806dde23d2c99043b4bed91a196d2c82. Then the default was
changed to `/lib/sysvinit/telinit` in abaaabf40a9891014ed4c402d7beb5a67ac256b1. Then it
started being  autodetected when meson support was added in
5c23128daba7236a6080383b2a5649033cfef85c. This patch restores the behaviour that was
implemented in configure.ac at the time of its removal.]
meson.build
meson_options.txt