Bug 8391 - setkeycodes does not have any effect.
setkeycodes does not have any effect.
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: console-tools (Show other bugs)
6.1
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-01-11 22:53 EST by sam
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-07-22 15:09:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description sam 2000-01-11 22:53:26 EST
Due to an error parsing it's command line, the setkeycodes command will
ignore the last scancode / keycode pair. If the user is attempting to
update just one scancode, then the command has no effect and will exit
normally with a return value of 0. The command getkeycodes can be used to
verify that no update has taken place.

The following patch will resolve this issue:

*** console-tools-1999.03.02/kbdtools/setkeycodes.c.orig        Wed Jan 12
14:01:54 2000
--- console-tools-1999.03.02/kbdtools/setkeycodes.c     Wed Jan 12 14:02:06
2000
***************
*** 62,68 ****
      if (-1 == (fd = get_console_fd(NULL)))
        exit (1);

!   while ( (argc - optind)  > 2)
      {
        a.scancode = sc = strtol(argv[optind++], &ep, 16);
        a.keycode = atoi(argv[optind++]);
--- 62,68 ----
      if (-1 == (fd = get_console_fd(NULL)))
        exit (1);

!   while ( (argc - optind)  >= 2)
      {
        a.scancode = sc = strtol(argv[optind++], &ep, 16);
        a.keycode = atoi(argv[optind++]);
Comment 1 Bernhard Rosenkraenzer 2000-08-03 13:03:15 EDT
This has been fixed for some months. Sorry for forgetting to close the bug.

Note You need to log in before you can comment on or make changes to this bug.