]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: also check for self-aliases during installation and ignore them
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Mar 2022 19:26:59 +0000 (20:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:56 +0000 (16:17 +0200)
commitf663e6468ff6f667a67fa1a0f9ca5c4962d4c605
tree79266bc47f6d29cde1ca86b379467ce339c4fd63
parent99aad9a2b9e2c06023a2043976fd9395332ff097
shared/install: also check for self-aliases during installation and ignore them

We had a check that was done in unit_file_resolve_symlink(). Let's move
the check to unit_validate_alias_symlink_or_warn(), which makes it available
to the code in install.c.

With this, unit_file_resolve_symlink() behaves almost the same. The warning
about "suspicious symlink" is done a bit later. I think this should be OK.
src/basic/unit-file.c
src/shared/install.c
test/test-systemctl-enable.sh