From 9a6d83553b2b9b32be437e7d0a79aeda1162384a Mon Sep 17 00:00:00 2001 From: dteske Date: Wed, 24 Oct 2018 23:17:17 +0000 Subject: [PATCH] MFC r339509: Fix loader.conf(5) "password" feature Restore the ability to prevent the user from interrupting the boot process without first entering the password stored in loader.conf(5). PR: kern/207069 Reported by: david@dcrosstech.com Sponsored by: Smule, Inc. --- stand/forth/check-password.4th | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stand/forth/check-password.4th b/stand/forth/check-password.4th index d41777c8bd2..e7996227c5f 100644 --- a/stand/forth/check-password.4th +++ b/stand/forth/check-password.4th @@ -129,7 +129,7 @@ variable readlen \ input length again \ Enter was not pressed; repeat ; -only forth definitions also password-processing +only forth definitions also password-processing also support-functions : check-password ( -- ) @@ -161,6 +161,7 @@ only forth definitions also password-processing \ We should prevent the user from visiting the menu or dropping to the \ interactive loader(8) prompt, but still allow the machine to boot... + any_conf_read? if load_kernel load_modules then 0 autoboot \ Only reached if autoboot fails for any reason (including if/when -- 2.45.0