Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot Increase MI efiboot bootprompt() input buf...



details:   https://anonhg.NetBSD.org/src/rev/0aa98c3c1026
branches:  trunk
changeset: 454833:0aa98c3c1026
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Sep 29 00:52:26 2019 +0000

description:
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.

diffstat:

 sys/stand/efiboot/prompt.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 76e6f2320431 -r 0aa98c3c1026 sys/stand/efiboot/prompt.c
--- a/sys/stand/efiboot/prompt.c        Sun Sep 29 00:10:02 2019 +0000
+++ b/sys/stand/efiboot/prompt.c        Sun Sep 29 00:52:26 2019 +0000
@@ -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 @@
 __dead void
 bootprompt(void)
 {
-       char input[80];
+       char input[LINE_MAX];
 
        for (;;) {
                char *c = input;



Home | Main Index | Thread Index | Old Index