Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:michael-chang:debug:fonts
grub2
0001-disk-cryptodisk-Fix-missing-change-when-up...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-disk-cryptodisk-Fix-missing-change-when-updating-to-.patch of Package grub2
From 652b221a5eacb1421891c1469608028e2c2f0615 Mon Sep 17 00:00:00 2001 From: Glenn Washburn <development@efficientek.com> Date: Fri, 18 Aug 2023 12:27:22 -0500 Subject: [PATCH] disk/cryptodisk: Fix missing change when updating to use grub_uuidcasecmp This was causing the cryptomount command to return failure even though the crypto device was successfully added. Of course, this meant that any script using the return code would behave unexpectedly. Fixes: 3cf2e848bc03 (disk/cryptodisk: Allows UUIDs to be compared in a dash-insensitive manner) Suggested-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Glenn Washburn <development@efficientek.com> --- grub-core/disk/cryptodisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index 802b191b2..c79d4125a 100644 --- a/grub-core/disk/cryptodisk.c +++ b/grub-core/disk/cryptodisk.c @@ -1323,7 +1323,8 @@ grub_cryptodisk_scan_device (const char *name, dev = grub_cryptodisk_scan_device_real (name, source, cargs); if (dev) { - ret = (cargs->search_uuid != NULL && grub_strcasecmp (cargs->search_uuid, dev->uuid) == 0); + ret = (cargs->search_uuid != NULL + && grub_uuidcasecmp (cargs->search_uuid, dev->uuid, sizeof (dev->uuid)) == 0); goto cleanup; } -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor