This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug glob/23926] fnmatch with FNM_PATHNAME is not POSIX compliant


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]