From: Yu Watanabe Date: Thu, 25 Sep 2025 16:08:53 +0000 (+0900) Subject: find-esp: fix error handling X-Git-Tag: v259-rc1~442 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04e434cedbfabe47d8255d14a1a59da30a4219c0;p=thirdparty%2Fsystemd.git find-esp: fix error handling Follow-up for 4b2b2f3ab710e328f1712a3f5e7480817c7a6ccd. --- diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c index 77910ed9b4c..1796ed8c760 100644 --- a/src/shared/find-esp.c +++ b/src/shared/find-esp.c @@ -640,8 +640,8 @@ static int verify_xbootldr_blkid( "%s: Partition has wrong PART_ENTRY_TYPE=%s for XBOOTLDR partition.", node, v); r = blkid_probe_lookup_value_id128(b, "PART_ENTRY_UUID", &uuid); - if (r != 0) - return log_error_errno(errno_or_else(EIO), "%s: Failed to probe PART_ENTRY_UUID: %m", node); + if (r < 0) + return log_error_errno(r, "%s: Failed to probe PART_ENTRY_UUID: %m", node); } else if (streq(type, "dos")) {