exclude: handle wildcards with FNM_EXTMATCH
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Apr 2012 22:53:53 +0000 (15:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Apr 2012 22:53:53 +0000 (15:53 -0700)
commitc116f3004c8173c1df5fc0ead911567192e6625b
tree74975815e32044bebe3bc4194403be063f76d7b6
parent40ab14879d4aa58fc5c24b16694f67118439c5d4
exclude: handle wildcards with FNM_EXTMATCH

* lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
'+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
comment that "has wildcards" really means "has or may have
wildcards".  Simplify by avoiding the need to call strcspn.
ChangeLog
lib/exclude.c