]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
find-esp: fix error handling
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Sep 2025 16:08:53 +0000 (01:08 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 Sep 2025 18:08:13 +0000 (20:08 +0200)
Follow-up for 4b2b2f3ab710e328f1712a3f5e7480817c7a6ccd.

src/shared/find-esp.c

index 77910ed9b4c2c0474a4f6ae700c63bcd31948234..1796ed8c760041e0ad9fcc0d88c41827eb053e7e 100644 (file)
@@ -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")) {