]> git.ipfire.org Git - thirdparty/systemd.git/commit
vpick: Fix pick_filter_image_any
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 20 Dec 2025 20:38:09 +0000 (21:38 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 16 Jan 2026 12:07:47 +0000 (13:07 +0100)
commit3fa3a4fd153c4ff836b3365d48adf02eac8c8221
tree462e4ab65035c6730e88a6af5161f74451ab4cc8
parent3f958812fd996f4c2661dfb07c526714b403ff3b
vpick: Fix pick_filter_image_any

Currently, pick_filter_image_any matches any image
with any suffix, which is way more than it should
be doing. It should only be matching images with
the .raw suffix.

Let's address this shortcoming by allowing to pass
multiple filters to path_pick(), and define
pick_filter_image_any as the combination of the
raw and directory image filters.

Fixes #40083
src/core/exec-invoke.c
src/core/namespace.c
src/dissect/dissect.c
src/nspawn/nspawn.c
src/portable/portable.c
src/shared/discover-image.c
src/shared/vpick.c
src/shared/vpick.h
src/test/test-vpick.c
src/vpick/vpick-tool.c