]> git.ipfire.org Git - thirdparty/systemd.git/commit
importd: validate local image names with the right helper
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Feb 2024 11:31:03 +0000 (12:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 21:25:42 +0000 (22:25 +0100)
commit8f20b498bd072bc9a0e9640b8560685ed11262f8
tree4d528dfd2f3d717550fbf0ff03e1143a38e6f0cd
parent420b8ce7989206607902819ab32977a9f7d8eccb
importd: validate local image names with the right helper

A while back we introduced image_name_is_valid() for validating image
file names. It's more liberal than hostname_is_valid() in many ways (and
allows version suffixes and such). Since importd deals in offline images
(as opposed to machined otherwise which deals in running machines),
let's hence use the right helper to validate the identifiers.
src/import/export.c
src/import/import-common.c
src/import/import-fs.c
src/import/import.c
src/import/importctl.c
src/import/importd.c
src/import/pull-common.c
src/import/pull.c