This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug glob/23926] fnmatch with FNM_PATHNAME is not POSIX compliant
- From: "cykerway at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 29 Nov 2018 15:38:15 +0000
- Subject: [Bug glob/23926] fnmatch with FNM_PATHNAME is not POSIX compliant
- Auto-submitted: auto-generated
- References: <bug-23926-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23926
--- Comment #12 from Cyker Way <cykerway at gmail dot com> ---
> So your argument holds only if you claim FNM_PATHNAME is not for pathname expansion.
Well, you finally claimed it. But then what would FNM_PATHNAME be designed for?
POSIX says:
<http://pubs.opengroup.org/onlinepubs/9699919799.2008edition/functions/fnmatch.html>
> With the FNM_PATHNAME flag, fnmatch() does match pathnames...
Thus it's clear FNM_PATHNAME is for matching pathnames. Now your ultimate
defense is: pathname matching is not pathname expansion.
Sounds logical :/
--
You are receiving this mail because:
You are on the CC list for the bug.