]> git.ipfire.org Git - thirdparty/systemd.git/commit
string-util: move version_is_valid() into generic code
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Mar 2023 10:09:42 +0000 (11:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Jun 2023 17:02:31 +0000 (19:02 +0200)
commitf5c6b4f4d9a45a67fb7ab047f3946649540a501e
tree1080cef61ca5403a1fc5d735053cd762f794eb05
parentec926463c0488a749d6f629fdd4bea9a319dfc5f
string-util: move version_is_valid() into generic code

While we are at it, replace the sloppy use of filename_is_valid() by the
less sloppy filename_part_is_valid() (as added by the preceeding
commit), since we don#t want to be too restrictive here. (After all,
version strings invalid as standalone filenames might be valid as part
of filenames, and hence we should allow them).
src/basic/string-util.c
src/basic/string-util.h
src/sysupdate/meson.build
src/sysupdate/sysupdate-pattern.c
src/sysupdate/sysupdate-transfer.c
src/sysupdate/sysupdate-util.c
src/sysupdate/sysupdate-util.h [deleted file]
src/test/test-string-util.c