Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix case-sensitivity issue

UEFI may be case sensitive even if the underlying filesystem isn't.
Compensate.
  • Loading branch information...
commit 245bb42f42f749df5148cda2127ebb991d53a82e 1 parent 86e4c40
authored March 01, 2012 vathpela committed March 21, 2012

Showing 1 changed file with 8 additions and 3 deletions. Show diff stats Hide diff stats

  1. 11  stage2/fsys_uefi.c
11  stage2/fsys_uefi.c
@@ -161,9 +161,14 @@ uefi_dir (char *dirname)
161 161
       if (filenamelen != ((strlen(dirname) - dirlen) * 2))
162 162
 	continue;
163 163
 
164  
-      for (i=0; i<filenamelen/2; i++)
165  
-	if (fileinfo->filename[i] != file_name_w[i + dirlen + 1])
166  
-	  invalid = 1;
  164
+      for (i=0; i<filenamelen/2; i++) {
  165
+	if (fileinfo->filename[i] != file_name_w[i + dirlen + 1]) {
  166
+	  if (fileinfo->filename[i] > 0xff ||
  167
+	      (grub_tolower(fileinfo->filename[i]) !=
  168
+	       grub_tolower(file_name_w[i + dirlen + 1])))
  169
+	    invalid = 1;
  170
+	}
  171
+      }
167 172
 
168 173
       if (!invalid)
169 174
 	break;

0 notes on commit 245bb42

Please sign in to comment.
Something went wrong with that request. Please try again.