core/unit: follow merged units before updating SourcePath= timestamp too
authorMike Yuan <me@yhndnzj.com>
Fri, 28 Jun 2024 13:32:33 +0000 (15:32 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 5 Jul 2024 18:00:04 +0000 (20:00 +0200)
commit86d47d63b01c1910f8f186668948f0dc7b80db37
tree1dab8dbcc4b1a78ce69e86ebb4def8248a1c7db8
parent9dec66fc5f771b660d14a0b57db37f0b39b7dceb
core/unit: follow merged units before updating SourcePath= timestamp too

Currently, we only follow merged units for unit_load_dropin() call.
But if the unit is an alias, we should always perform operations
on the "canonical" unit.

(cherry picked from commit 740cd1e0f2ae5cc1a10d2111d63cc4e975761091)
src/core/unit.c