summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2010-02-10 15:36:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-02-11 19:25:34 +1000
commit27d1b86d1b858f931b4cb1b6ddf857c76d92a6d9 (patch)
tree6e0b4e018d075f2b81476ea66f273f5891bc1546
parent9b369f71273fb117c982e6ce16cd4462f206d365 (diff)
xfree86: Set fnmatch pathname flag for InputClass device matching
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--hw/xfree86/common/xf86Xinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index 8ac9d268f..46047108f 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -535,7 +535,7 @@ InputClassMatches(XF86ConfInputClassPtr iclass, InputAttributes *attrs)
/* see if any of the values match */
for (cur = iclass->match_device, match = FALSE; *cur; cur++)
#ifdef HAVE_FNMATCH_H
- if (fnmatch(*cur, attrs->device, 0) == 0) {
+ if (fnmatch(*cur, attrs->device, FNM_PATHNAME) == 0) {
#else
if (strstr(attrs->device, *cur)) {
#endif