diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-10 20:26:59 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-29 16:17:56 +0200 |
commit | f663e6468ff6f667a67fa1a0f9ca5c4962d4c605 (patch) | |
tree | 79266bc47f6d29cde1ca86b379467ce339c4fd63 /test/test-systemctl-enable.sh | |
parent | 99aad9a2b9e2c06023a2043976fd9395332ff097 (diff) | |
download | systemd-f663e6468ff6f667a67fa1a0f9ca5c4962d4c605.tar.gz |
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.
Diffstat (limited to 'test/test-systemctl-enable.sh')
-rw-r--r-- | test/test-systemctl-enable.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test-systemctl-enable.sh b/test/test-systemctl-enable.sh index 32bc6e5ef7..4117436462 100644 --- a/test/test-systemctl-enable.sh +++ b/test/test-systemctl-enable.sh @@ -328,8 +328,7 @@ test ! -h "$root/etc/systemd/system/services.target.wants/templ1@two.service" test ! -e "$root/etc/systemd/system/link4.service" cat >"$root/etc/systemd/system/link4.service" <<EOF [Install] -# FIXME: self-alias should be ignored -# Alias=link4.service +Alias=link4.service Alias=link4@.service Alias=link4@inst.service Alias=link4alias.service @@ -372,8 +371,7 @@ test ! -h "$root/etc/systemd/system/link4alias2.service" test ! -e "$root/etc/systemd/system/link5.service" cat >"$root/etc/systemd/system/link5.service" <<EOF [Install] -# FIXME: self-alias should be ignored -# Alias=link5.service +Alias=link5.service Alias=link5alias.service Alias=link5alias2.service EOF |