]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-07-06 Daniel Mierswa <impulze@impulze.org>
authorproski <proski@localhost>
Mon, 6 Jul 2009 20:07:58 +0000 (20:07 +0000)
committerproski <proski@localhost>
Mon, 6 Jul 2009 20:07:58 +0000 (20:07 +0000)
* commands/search.c (search_fs): Use grub_strcasecmp() for UUID
comparison.

ChangeLog
commands/search.c

index db77c5d6b1b761fb1c6a7d41520bdf1a9bf188fb..521a32c545d4d97a0c6089a189d3100131ebff24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 647f4083962eb1642ea1ac72454ebc175a30b10a..d749bca11a428a3d763bf8e0be76c30338ba8447 100644 (file)
@@ -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++;