shared/install: fix handling of a linked unit file
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 17 Mar 2022 15:02:10 +0000 (16:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:57 +0000 (16:17 +0200)
commit48eadb9d9b66f302cda09cdf6d35fead31aaa968
tree93ac5892d2186a08d2936dd386b5ca6dd87ae614
parent48ed75adabef3427767038fa155e55b3b0d48f35
shared/install: fix handling of a linked unit file

When we have a symlink that goes outside of our search path, we should just
ignore the target file name. But we were verifying it, and rejecting in
the case where a symlink was created manually.
src/shared/install.c
test/test-systemctl-enable.sh