Bug 8391

Summary: setkeycodes does not have any effect.
Product: [Retired] Red Hat Linux Reporter: sam
Component: console-toolsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: fred-m
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-22 19:09:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description sam 2000-01-12 03:53:26 UTC
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 17:03:15 UTC
This has been fixed for some months. Sorry for forgetting to close the bug.