diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2010-04-11 15:33:02 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2010-04-11 15:33:02 +0000 |
commit | df099de19785e4d2fa76169d985ec5a8909c1771 (patch) | |
tree | 3ff5799a6ad024d46080fa41651a4eedf2f83634 /sys-auth/thinkfinger/files | |
parent | Apply arch detection logic from bug #296917 by ferret (diff) | |
download | gentoo-2-df099de19785e4d2fa76169d985ec5a8909c1771.tar.gz gentoo-2-df099de19785e4d2fa76169d985ec5a8909c1771.tar.bz2 gentoo-2-df099de19785e4d2fa76169d985ec5a8909c1771.zip |
Revision bump by Víctor Enríquez Miguel. Patches from mephinet & Michael Weber close bug #298459. Patch from Michael Weber closes bug #309751.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/thinkfinger/files')
-rw-r--r-- | sys-auth/thinkfinger/files/0.3-send-sync-event.patch | 50 | ||||
-rw-r--r-- | sys-auth/thinkfinger/files/60-thinkfinger.rules | 14 |
2 files changed, 51 insertions, 13 deletions
diff --git a/sys-auth/thinkfinger/files/0.3-send-sync-event.patch b/sys-auth/thinkfinger/files/0.3-send-sync-event.patch new file mode 100644 index 000000000000..39e0edb27ba1 --- /dev/null +++ b/sys-auth/thinkfinger/files/0.3-send-sync-event.patch @@ -0,0 +1,50 @@ +--- pam/pam_thinkfinger-uinput.c 2009-12-27 18:42:26.000000000 +0100 ++++ pam/pam_thinkfinger-uinput.c 2009-12-27 18:41:55.000000000 +0100 +@@ -34,27 +34,40 @@ + int uinput_cr (int *fd) + { + int retval = 0, ev_size = 0; +- struct input_event ev = { ++ struct input_event key_ev = { + .type = EV_KEY, + .code = KEY_ENTER, + .time = {0, } + }; + +- ev_size = sizeof (ev); ++ ev_size = sizeof (key_ev); + + /* key press */ +- ev.value = 1; +- if (write (*fd, &ev, ev_size) != ev_size) { ++ key_ev.value = 1; ++ if (write (*fd, &key_ev, ev_size) != ev_size) { + retval = errno; + goto out; + } + /* key release */ +- ev.value = 0; +- if (write (*fd, &ev, ev_size) != ev_size) { ++ key_ev.value = 0; ++ if (write (*fd, &key_ev, ev_size) != ev_size) { + retval = errno; + goto out; + } +- ++ ++ /* syn event */ ++ struct input_event syn_ev = { ++ .time = {0, }, ++ .type = EV_SYN, ++ .code = SYN_REPORT, ++ .value = 0 ++ }; ++ ++ if (write (*fd, &syn_ev, ev_size) != ev_size) { ++ retval = errno; ++ goto out; ++ } ++ + out: + return retval; + } diff --git a/sys-auth/thinkfinger/files/60-thinkfinger.rules b/sys-auth/thinkfinger/files/60-thinkfinger.rules index 21e1ac9461e3..1ccc394d49ff 100644 --- a/sys-auth/thinkfinger/files/60-thinkfinger.rules +++ b/sys-auth/thinkfinger/files/60-thinkfinger.rules @@ -1,17 +1,5 @@ -# -# udev rules file for the thinkfinger fingerprint scanner -# -# gives access to the fingerprint reader to those in the "fingerprint" group -# -# Taken from: -# http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger -# which was taken and modified from: -# http://article.gmane.org/gmane.linux.drivers.thinkfinger/329 -# - # SGS Thomson Microelectronics Fingerprint Reader -SYSFS{idVendor}=="0483", SYSFS{idProduct}=="2016", SYMLINK+="input/thinkfinger-%k", MODE="0660", GROUP="fingerprint" +ATTRS{idVendor}=="0483", ATTRS{idProduct}=="2016", SYMLINK+="input/thinkfinger-%k", MODE="0660", GROUP="fingerprint" # the also-needed uinput device KERNEL=="uinput", MODE="0660", GROUP="fingerprint" - |