git: 20062c378b34 - stable/14 - kbdmap: fix typo preventing kbdmap to work under vt

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Mon, 18 Mar 2024 14:35:56 UTC
The branch stable/14 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=20062c378b34f28f1f9a8025f0c5899a5349c903

commit 20062c378b34f28f1f9a8025f0c5899a5349c903
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-02-01 07:44:04 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-03-18 14:34:49 +0000

    kbdmap: fix typo preventing kbdmap to work under vt
    
    (cherry picked from commit 0f4e8037332fa5e64b3bb291c9b1ba7f8d8b4d4e)
---
 usr.sbin/kbdmap/kbdmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/kbdmap/kbdmap.c b/usr.sbin/kbdmap/kbdmap.c
index cad42ec29985..7735a0e55191 100644
--- a/usr.sbin/kbdmap/kbdmap.c
+++ b/usr.sbin/kbdmap/kbdmap.c
@@ -399,7 +399,7 @@ show_dialog(struct keymap **km_sorted, int num_keymaps)
 	case BSDDIALOG_OK:
 		for (i = 0; i < num_keymaps; i++) {
 			if (listitems[i].on) {
-				if (!strcmp(program, "kdbmap"))
+				if (!strcmp(program, "kbdmap"))
 					do_kbdcontrol(km_sorted[i]);
 				else
 					do_vidfont(km_sorted[i]);