9 Star 1 Fork 83

src-openEuler / grub2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
grub2-increase-crypttab-path-buffer.patch 873 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangqiumiao 提交于 2024-03-04 03:17 . update to 2.12
From bbf0d5b3bcdde357de343032ecf358764faf0339 Mon Sep 17 00:00:00 2001
From: Gary Lin <glin@suse.com>
Date: Fri, 16 Dec 2022 09:19:50 +0800
Subject: [PATCH] commands/crypttab: increase the size of the path buffer
Allocate a larger buffer for the cryptsetup.d path in case the system
uses a long volume name.
Signed-off-by: Gary Lin <glin@suse.com>
---
grub-core/commands/crypttab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: grub-2.06/grub-core/commands/crypttab.c
===================================================================
--- grub-2.06.orig/grub-core/commands/crypttab.c
+++ grub-2.06/grub-core/commands/crypttab.c
@@ -11,7 +11,7 @@ static grub_err_t
grub_cmd_crypttab_entry (grub_command_t cmd __attribute__ ((unused)),
int argc, char **argv)
{
- char buf[64];
+ char buf[256];
const char *path = NULL;
if (argc == 2)
1
https://gitee.com/src-openeuler/grub2.git
git@gitee.com:src-openeuler/grub2.git
src-openeuler
grub2
grub2
master

搜索帮助