From 5f9be87d80bb1caa1f17daaf45a91b7391e36765 Mon Sep 17 00:00:00 2001 From: se Date: Sat, 26 Jul 2014 12:17:26 +0000 Subject: Fix obvious off by one error: prefix[1] should be set to the path of the newcons specific keymap files, not prefix[2]. The result of this bug was that kbdcontrol ignored the files in the syscons keymap directory, which apparently still work under newcons, for most locales. MFC after: 1 week --- usr.sbin/kbdcontrol/kbdcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index 0f927ef..d5ed145 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -804,7 +804,7 @@ load_keymap(char *opt, int dumponly) char *postfix[] = {blank, dotkbd, NULL}; if (is_vt4()) - prefix[2] = vt_keymap_path; + prefix[1] = vt_keymap_path; cp = getenv("KEYMAP_PATH"); if (cp != NULL) asprintf(&(prefix[0]), "%s/", cp); -- cgit v1.1