grub2/0097-don-t-ignore-const.patch
Peter Jones 77d0810cf0 Fix tftp filename mangling and secure boot dmesg error.
Fix tftp filename mangling to not reuse the wrong variable
  Resolves: rhbz#1405208
Make grub2 initialize the kernel's boot_params structure correctly so the
  upstream SB code doesn't throw a fit.
  Resolves: rhbz#1418360
  Resolves: rhbz#1451071

Signed-off-by: Peter Jones <pjones@redhat.com>
2017-06-26 17:02:20 -04:00

25 lines
648 B
Diff

From f2b28326d5aa2cdcaa56def8a806fbcc23962c03 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Mon, 26 Jun 2017 12:43:22 -0400
Subject: [PATCH 097/105] don't ignore const
---
grub-core/net/tftp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c
index c4b5205d0..dd4ce6b23 100644
--- a/grub-core/net/tftp.c
+++ b/grub-core/net/tftp.c
@@ -307,7 +307,7 @@ static void
grub_normalize_filename (char *normalized, const char *filename)
{
char *dest = normalized;
- char *src = filename;
+ const char *src = filename;
while (*src != '\0')
{
--
2.13.0