[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#65666: base: The program "setkeycodes" in console-tools is broken.



Package: base
Version: 20000614
Severity: grave

After trying to use setkeycodes to map keys from my "web" keyboard
with all sorts of extra buttons (like volume, play, stop, calculator etc)
I discovered that setkeycodes does ... nada ... Due to a small bug
in its handling of the number of arguments it has recieved.

On analysis of the source I've found the solution is to change the
66th line of console-tools-0.2.3/kbtools/setkeycodes.c
from
while ( (argc - optind)  > 2)
to
while ( (argc - optind)  >= 2)

Stephen Thorne
sjthorne@ozemail.com.au
JerubBaal au.austnet.org, irc.openprojects.org

-- System Information
Debian Release: 2.2
Kernel Version: Linux theseus 2.4.0-test1 #1 Mon Jun 12 20:37:43 EST 2000 i586 unknown




Reply to: