diff options
author | se <se@FreeBSD.org> | 2014-07-26 12:17:26 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 2014-07-26 12:17:26 +0000 |
commit | 5f9be87d80bb1caa1f17daaf45a91b7391e36765 (patch) | |
tree | 557f02962cac4a1139d30dc571fddd031e1c293b /usr.sbin/kbdcontrol | |
parent | 0f4faf42cbb855fd26557197bdcea66a237af96c (diff) | |
download | FreeBSD-src-5f9be87d80bb1caa1f17daaf45a91b7391e36765.zip FreeBSD-src-5f9be87d80bb1caa1f17daaf45a91b7391e36765.tar.gz |
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
Diffstat (limited to 'usr.sbin/kbdcontrol')
-rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |