summaryrefslogtreecommitdiffstats
path: root/master/debian/fat_uuid.patch
blob: b7c0a46b94bbc09f7b4c7a5fb93a204acf0214a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Make FAT UUID uppercase to match Linux
Author: Vladimir Serbinenko <phcoder@gmail.com>
Origin: upstream, http://bazaar.launchpad.net/~vcs-imports/grub/grub2-bzr/revision/3482
Bug-Ubuntu: https://bugs.launchpad.net/bugs/948716
Forwarded: not-needed
Applied-Upstream: http://bazaar.launchpad.net/~vcs-imports/grub/grub2-bzr/revision/3482
Last-Update: 2012-03-19

Index: b/grub-core/fs/fat.c
===================================================================
--- a/grub-core/fs/fat.c
+++ b/grub-core/fs/fat.c
@@ -836,9 +836,12 @@
   data = grub_fat_mount (disk);
   if (data)
     {
+      char *ptr;
       *uuid = grub_xasprintf ("%04x-%04x",
 			     (grub_uint16_t) (data->uuid >> 16),
 			     (grub_uint16_t) data->uuid);
+      for (ptr = *uuid; ptr && *ptr; ptr++)
+	*ptr = grub_toupper (*ptr);
     }
   else
     *uuid = NULL;