]> git.ipfire.org Git - thirdparty/systemd.git/commit
ssh-generator: follow symlink when searching for sshd@.service
authorMike Yuan <me@yhndnzj.com>
Mon, 2 Feb 2026 15:24:00 +0000 (16:24 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 2 Feb 2026 23:17:34 +0000 (08:17 +0900)
commitc27d1b3eecbd00aecb67d3ec6e3063e7f991693a
treebc3a3bd05411acfbcc7eb574cb1fcdb6d1e0478f
parentce41216e49738959391c290f7bd1048c907b8d88
ssh-generator: follow symlink when searching for sshd@.service

unit_file_exists() currently does not follow symlinks, as it is
mainly used to test whether the unit (of any install state)
has been seen under search dirs. However, in ssh-generator
we should search for and honor whatever the distro ships,
which might be an alias or linked externally.
src/shared/install.c
src/shared/install.h
src/ssh-generator/ssh-generator.c