From: Colin Walters Date: Tue, 24 Jun 2025 20:47:14 +0000 (-0400) Subject: prepare-root: Fix error overwrite X-Git-Tag: archive/raspbian/2025.7-2+rpi1^2^2~6^2~4^2~16^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=070008d6d3b6f2d81e310cb12ed0d13f7109396a;p=ostree.git prepare-root: Fix error overwrite An AI code review tool spotted incorrect usage of GError. Awesome. Signed-off-by: Colin Walters --- diff --git a/src/libotcore/otcore-prepare-root.c b/src/libotcore/otcore-prepare-root.c index fa990dec..54550f35 100644 --- a/src/libotcore/otcore-prepare-root.c +++ b/src/libotcore/otcore-prepare-root.c @@ -430,7 +430,7 @@ otcore_mount_composefs (ComposefsConfig *composefs_config, GVariantBuilder *meta g_autoptr (GBytes) commit_data = g_variant_get_data_as_bytes (commit); if (!validate_signature (commit_data, signatures, composefs_config->pubkeys, error)) - return glnx_throw (error, "No valid signatures found for public key"); + return glnx_prefix_error (error, "No valid signatures found for public key"); g_print ("composefs+ostree: Validated commit signature using '%s'\n", composefs_pubkey); g_variant_builder_add (metadata_builder, "{sv}", OTCORE_RUN_BOOTED_KEY_COMPOSEFS_SIGNATURE,