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

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