]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: refactor find_symlinks() and don't search for symlinks recursively
authorMichal Sekletar <msekleta@redhat.com>
Tue, 9 Mar 2021 16:22:32 +0000 (17:22 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Mar 2021 12:12:37 +0000 (13:12 +0100)
commit43b4e3058c106e663bbd5413e7bd106e55d6fd79
treed8bdb5b62e92540c420dd0f78443d1c4e4260c2a
parent170c659338f0a4dd4febcc853bb6698223d9f9b2
install: refactor find_symlinks() and don't search for symlinks recursively

After all we are only interested in symlinks either in top-level config
directory or in .wants and .requires sub-directories.

As a bonus this should speed up ListUnitFiles() roughly 3-4x on systems
with a lot of units that use drop-ins (e.g. SSH jump hosts with a lot of
user session scopes).
src/shared/install.c