analyze: do not prepend the current working directory to SYSTEMD_UNIT_PATH needlessly
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Nov 2023 20:22:33 +0000 (05:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Nov 2023 20:28:14 +0000 (05:28 +0900)
commit2f6181ad4d6c126e3ebf6880ba30b3b0059c6fc8
treeb1eb8bceef4839769a11578acc1ce1512fd3ef26
parentff7af46edb51c6548876e139c89389a388694051
analyze: do not prepend the current working directory to SYSTEMD_UNIT_PATH needlessly

If the requested unit is not in the current working directory, it is not
necessary to include the current working directory in SYSTEMD_UNIT_PATH.

Follow-up for 45519d13a4f2a3c3585e672595762ca621abe65e.

Fixes #30166.
src/analyze/analyze-verify-util.c