Quadlet - fix dropin overwrites if different parent dirs

fixes #26555

Signed-off-by: Andreas <43118918+eulores@users.noreply.github.com>
This commit is contained in:
Andreas
2025-07-02 16:42:01 +02:00
committed by Paul Holzinger
parent 04a589fea3
commit 022bac25ea

View File

@@ -140,8 +140,8 @@ func loadUnitDropins(unit *parser.UnitFile, sourcePaths []string) error {
dropinDirs := []string{}
unitDropinPaths := unit.GetUnitDropinPaths()
for _, sourcePath := range sourcePaths {
for _, dropinPath := range unitDropinPaths {
for _, dropinPath := range unitDropinPaths {
for _, sourcePath := range sourcePaths {
dropinDirs = append(dropinDirs, path.Join(sourcePath, dropinPath))
}
}