From 27d1b86d1b858f931b4cb1b6ddf857c76d92a6d9 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 10 Feb 2010 15:36:48 +1000 Subject: [PATCH] xfree86: Set fnmatch pathname flag for InputClass device matching Signed-off-by: Dan Nicholson Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- hw/xfree86/common/xf86Xinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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