Blame SOURCES/0081-grub-core-commands-verify.c-grub_pubkey_open-Fix-mem.patch

6b3c76
From 650ec2a7667e0a06ab4af1030d1a4e3832ac48c6 Mon Sep 17 00:00:00 2001
a85e8e
From: Vladimir Serbinenko <phcoder@gmail.com>
a85e8e
Date: Mon, 12 May 2014 10:01:48 +0200
6b3c76
Subject: [PATCH 081/261] * grub-core/commands/verify.c (grub_pubkey_open): Fix
6b3c76
 memdisk check.
a85e8e
a85e8e
---
d41074
 ChangeLog                   | 5 +++++
6b3c76
 grub-core/commands/verify.c | 2 +-
a85e8e
 2 files changed, 6 insertions(+), 1 deletion(-)
a85e8e
d41074
diff --git a/ChangeLog b/ChangeLog
6b3c76
index 3b61c0a99..d0896d89e 100644
d41074
--- a/ChangeLog
d41074
+++ b/ChangeLog
d41074
@@ -1,3 +1,8 @@
d41074
+2014-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
d41074
+
d41074
+	* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
d41074
+	check.
d41074
+
d41074
 2014-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
d41074
 
d41074
 	* grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
6b3c76
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
6b3c76
index a9dfd8852..6349ccfba 100644
6b3c76
--- a/grub-core/commands/verify.c
6b3c76
+++ b/grub-core/commands/verify.c
6b3c76
@@ -835,7 +835,7 @@ grub_pubkey_open (grub_file_t io, const char *filename)
6b3c76
 
6b3c76
   if (!sec)
6b3c76
     return io;
6b3c76
-  if (io->device->disk && io->device->disk->id == GRUB_DISK_DEVICE_MEMDISK_ID)
6b3c76
+  if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
6b3c76
     return io;
6b3c76
   fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
6b3c76
   if (!fsuf)
6b3c76
-- 
6b3c76
2.13.5
6b3c76