kbd: Fix missing patch
This commit is contained in:
parent
265ffd8b34
commit
487e4b13db
18
pkgs/os-specific/linux/kbd/console-fix.patch
Normal file
18
pkgs/os-specific/linux/kbd/console-fix.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/src/loadkeys.c b/src/loadkeys.c
|
||||
index 6b23f68..adf65a0 100644
|
||||
--- a/src/loadkeys.c
|
||||
+++ b/src/loadkeys.c
|
||||
@@ -166,10 +166,10 @@ main(int argc, char *argv[])
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
- /* get console */
|
||||
- fd = getfd(console);
|
||||
-
|
||||
if (!(options & OPT_M) && !(options & OPT_B)) {
|
||||
+ /* get console */
|
||||
+ fd = getfd(console);
|
||||
+
|
||||
/* check whether the keyboard is in Unicode mode */
|
||||
if (ioctl(fd, KDGKBMODE, &kbd_mode) ||
|
||||
ioctl(fd, KDGETMODE, &kd_mode)) {
|
Loading…
Reference in New Issue
Block a user