]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: r254091
authorache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 15 Aug 2013 04:27:10 +0000 (04:27 +0000)
committerache <ache@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 15 Aug 2013 04:27:10 +0000 (04:27 +0000)
commit00dbca7e6f305d55347b121934a53030ee629211
tree5c659f02c2c742db7897afe7033febf22dd26975
parentd5499ecb19557dae45d48093ff64c8435008a840
MFC: r254091

According to POSIX \ in the fnmatch(3) pattern should escape
any character including '\0', but our version replace escaped '\0'
with '\\'.
I.e. fnmatch("\\", "\\", 0) should not match while fnmatch("\\", "", 0)
should (Linux and NetBSD does the same). Was vice versa.

PR:     181129

git-svn-id: svn://svn.freebsd.org/base/stable/9@254353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/fnmatch.c