~ubuntu-branches/ubuntu/saucy/libfprint/saucy

« back to all changes in this revision

Viewing changes to debian/patches/Fix-blacklist-handling-in-udev-rules-creation.patch

  • Committer: Package Import Robot
  • Author(s): Didier Raboud
  • Date: 2012-06-26 10:52:16 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120626105216-f4pzq3iid2tq4a24
Tags: 1:0.4.0-4-gdfff16f-3
* Patch the udev rules creator to:
  - include all devices; (Closes: #679001)
  - handle blacklists correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 1f1d14d5fad50a469c1214a394e4a89d7d32101d Mon Sep 17 00:00:00 2001
 
2
From: Didier Raboud <odyx@debian.org>
 
3
Date: Mon, 25 Jun 2012 22:47:26 +0200
 
4
Subject: [PATCH] Fix blacklist handling in udev rules creation.
 
5
 
 
6
---
 
7
 libfprint/fprint-list-udev-rules.c |    2 +-
 
8
 1 file changed, 1 insertion(+), 1 deletion(-)
 
9
 
 
10
diff --git a/libfprint/fprint-list-udev-rules.c b/libfprint/fprint-list-udev-rules.c
 
11
index 182ee10..66b2cc0 100644
 
12
--- a/libfprint/fprint-list-udev-rules.c
 
13
+++ b/libfprint/fprint-list-udev-rules.c
 
14
@@ -49,7 +49,7 @@ static void print_driver (struct fp_driver *driver)
 
15
        blacklist = 0;
 
16
        for (j = 0; blacklist_id_table[j].vendor != 0; j++) {
 
17
            if (driver->id_table[i].vendor == blacklist_id_table[j].vendor &&
 
18
-               driver->id_table[j].product == blacklist_id_table[j].product) {
 
19
+               driver->id_table[i].product == blacklist_id_table[j].product) {
 
20
                blacklist = 1;
 
21
                break;
 
22
            }
 
23
-- 
 
24
1.7.10
 
25