exclude: handle wildcards with FNM_NOESCAPE and with trailing \
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Apr 2012 00:02:13 +0000 (17:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Apr 2012 00:02:41 +0000 (17:02 -0700)
commitf58a007d877819767440ee92d181fef6b0039706
tree22bfb03c96b815f3403f49e2f22dc2617d257604
parent2170abddc59962473ce4441596e8a52db5385e54
exclude: handle wildcards with FNM_NOESCAPE and with trailing \

* lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
it's not possible here.  Handle the case of \ at end of pattern
without dumping core.
(add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
ChangeLog
lib/exclude.c