Module Name: src
Committed By: jakllsch
Date: Sun Sep 29 00:52:26 UTC 2019
Modified Files:
src/sys/stand/efiboot: prompt.c
Log Message:
Increase MI efiboot bootprompt() input buffer from 80 bytes to LINE_MAX.
This allows you to load a kernel from a build directory deep in some file
system after you accidentally boot an old kernel with a new userland and
are otherwise unable to get yourself back to a matching kernel.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/stand/efiboot/prompt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/prompt.c
diff -u src/sys/stand/efiboot/prompt.c:1.4 src/sys/stand/efiboot/prompt.c:1.5
--- src/sys/stand/efiboot/prompt.c:1.4 Wed Oct 31 23:49:34 2018
+++ src/sys/stand/efiboot/prompt.c Sun Sep 29 00:52:26 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: prompt.c,v 1.4 2018/10/31 23:49:34 jmcneill Exp $ */
+/* $NetBSD: prompt.c,v 1.5 2019/09/29 00:52:26 jakllsch Exp $ */
/*
* Copyright (c) 1996, 1997
@@ -40,6 +40,7 @@
#include "efiboot.h"
#include <lib/libsa/net.h>
+#include <sys/syslimits.h>
#define POLL_FREQ 10
@@ -136,7 +137,7 @@ docommand(char *arg)
__dead void
bootprompt(void)
{
- char input[80];
+ char input[LINE_MAX];
for (;;) {
char *c = input;