]> git.ipfire.org Git - thirdparty/systemd.git/commit
rpm: don't specify the full path for systemctl and other commands
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Jul 2021 12:02:36 +0000 (14:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Jul 2021 08:57:35 +0000 (10:57 +0200)
commit7d9ee15d0fc2af87481ee371b278dbe7e68165ef
treecc851ed0146a0bf48f8b7eb682fa9afeeca44c68
parent3cfd5ddd59aa4a7c365bd86fa7755610e8ad7296
rpm: don't specify the full path for systemctl and other commands

We can make things a bit simpler and more readable by not specifying the path.
Since we didn't specify the full path for all commands (including those invoked
recursively by anythign we invoke), this didn't really privide any security or
robustness benefits. I guess that full paths were used because this style of
rpm packagnig was popular in the past, with macros used for everything
possible, with special macros for common commands like %{__ln} and %{__mkdir}.
src/rpm/macros.systemd.in
src/rpm/triggers.systemd.in
src/rpm/triggers.systemd.sh.in