]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: ID from os-release should be non-empty, not just non-NULL
authorLuca Boccassi <bluca@debian.org>
Fri, 20 May 2022 11:05:34 +0000 (12:05 +0100)
committerLuca Boccassi <bluca@debian.org>
Fri, 20 May 2022 11:05:34 +0000 (12:05 +0100)
src/shared/dissect-image.c

index 5b0b12a265829f568dd909ee47e5c112a10be41e..1ab88839aacfb9f8b9e33215bbbcc0b5305e2c65 100644 (file)
@@ -3157,7 +3157,7 @@ int verity_dissect_and_mount(
          * First, check the distro ID. If that matches, then check the new SYSEXT_LEVEL value if
          * available, or else fallback to VERSION_ID. If neither is present (eg: rolling release),
          * then a simple match on the ID will be performed. */
-        if (required_host_os_release_id) {
+        if (!isempty(required_host_os_release_id)) {
                 _cleanup_strv_free_ char **extension_release = NULL;
 
                 r = load_extension_release_pairs(dest, dissected_image->image_name, &extension_release);