mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
2009-07-06 Daniel Mierswa <impulze@impulze.org>
* commands/search.c (search_fs): Use grub_strcasecmp() for UUID comparison.
This commit is contained in:
1 parent
bab7495862
commit
e110f4dea7
2 files changed
+8
-1
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2009-07-06 Daniel Mierswa <impulze@impulze.org>
|
||||
|
||||
* commands/search.c (search_fs): Use grub_strcasecmp() for UUID
|
||||
comparison.
|
||||
|
||||
2009-07-05 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* include/grub/i386/linux.h (struct linux_kernel_params):
|
||||
|
||||
+3
-1
@@ -67,8 +67,10 @@ search_fs (const char *key, const char *var, int no_floppy, int is_uuid)
|
||||
if (dev)
|
||||
{
|
||||
grub_fs_t fs;
|
||||
int (*compare_fn) (const char *, const char *);
|
||||
|
||||
fs = grub_fs_probe (dev);
|
||||
compare_fn = is_uuid ? grub_strcasecmp : grub_strcmp;
|
||||
|
||||
#define QUID(x) (is_uuid ? (x)->uuid : (x)->label)
|
||||
|
||||
@@ -79,7 +81,7 @@ search_fs (const char *key, const char *var, int no_floppy, int is_uuid)
|
||||
(QUID(fs)) (dev, &quid);
|
||||
if (grub_errno == GRUB_ERR_NONE && quid)
|
||||
{
|
||||
if (grub_strcmp (quid, key) == 0)
|
||||
if (compare_fn (quid, key) == 0)
|
||||
{
|
||||
/* Found! */
|
||||
count++;
|
||||
|
||||
Reference in new issue
Block a user