mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 23:08:04 +02:00
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>
This commit is contained in:
parent
9b369f7127
commit
27d1b86d1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue