path-util: make default PATH match global ALT defaults
commitbf42cb69ec92423399ec2ea6f55f308f5b3109f3
authorArseny Maslennikov <arseny@altlinux.org>
Thu, 18 Apr 2024 14:00:00 +0000 (18 17:00 +0300)
committerArseny Maslennikov <arseny@altlinux.org>
Thu, 18 Apr 2024 14:00:00 +0000 (18 17:00 +0300)
tree37f3dca2c6f0b5f143eb90a474bdd358032641d6
parent04794c33c0274b2127da1e9c4efcc447db245b25
path-util: make default PATH match global ALT defaults

This one is easier to diff against systemd-stable v254.10 than against
the previous commit.

The global ALT defaults as of filesystem >= 3 are:
* sbin directories are omitted for user services;
* every sbin directory, if present, is ordered right before its matching
  bin.
* /usr/local/* are ordered last (I do not condone this, but if we agree
  to fix this, fix it everywhere at once);
* executable locations in /usr precede or replace executable locations in /.

We already conflict with filesystem < 3 due to different changes.
src/basic/path-util.h