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

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