]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Add a sysupdate test for files which are a prefix match of each other
authorPhilip Withnall <pwithnall@gnome.org>
Sun, 3 May 2026 21:36:32 +0000 (22:36 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 14 May 2026 19:08:31 +0000 (20:08 +0100)
commitb47ed6246d14489bded767a1bcb25dd47bfa771d
treed0c3849b233b8f2edcd70df61dd0eb40e68c1c37
parent62feba20aaf6848ff76d3be6da743c5638e2471b
test: Add a sysupdate test for files which are a prefix match of each other

This tests whether the pattern matching code checks it’s matched the
whole string and not just a prefix (see commit 4ffb60319b).

In particular, this tests a setup which KDE currently use in their
sysupdate images, where two regular file transfers are done, one of a
`foo.erofs` file, and the other `foo.erofs.caibx`. As one is a prefix of
the other, they were hitting this bug.

See:
 - https://files.kde.org/kde-linux/sysupdate/v2/
 - https://github.com/KDE/kde-linux/tree/master/mkosi.extra/usr/lib/sysupdate.d

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Fixes: https://github.com/systemd/systemd/issues/38605
Fixes: https://github.com/systemd/systemd/issues/41288
test/units/TEST-72-SYSUPDATE.sh