]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
According to POSIX \ in the fnmatch(3) pattern should escape
authorAndrey A. Chernov <ache@FreeBSD.org>
Thu, 8 Aug 2013 09:04:02 +0000 (09:04 +0000)
committerAndrey A. Chernov <ache@FreeBSD.org>
Thu, 8 Aug 2013 09:04:02 +0000 (09:04 +0000)
commitc08f11b07c1e4a1cc30cade438adbdd4fefe5da2
tree7f5755d9b2b46c645a62c0fe478b9e77ddd90ff3
parent4030a4b2a3a4d62271fbccdb2cf94878083101cd
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
MFC after:      1 week
lib/libc/gen/fnmatch.c