From 7970db60f585ab5d36ad2a47db2403aca7c38d6b Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 20 May 2022 12:05:34 +0100 Subject: [PATCH] dissect: ID from os-release should be non-empty, not just non-NULL (cherry picked from commit a2cf73f0b602a93a32107cfc066a5e307263c577) --- src/shared/dissect-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index c16d98b127..b7302fd879 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -3540,7 +3540,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);