HomeFreeBSD

According to POSIX \ in the fnmatch(3) pattern should escape
rS254091Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

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

Details

Provenance
acheAuthored on
Parents
rS254090: MFC r253191:
Branches
Unknown
Tags
Unknown

Event Timeline