Module Name: src Committed By: christos Date: Sun Oct 12 22:32:33 UTC 2014
Modified Files: src/lib/libc/gen: fnmatch.c Log Message: Fix fnmatch issues according to POSIX. http://pubs.opengroup.org/onlinepubs/009695399/utilities/\ xcu_chap02.html#tag_02_13_01 1. A [...] pattern containing a slash is not a pattern; the [ ]'s become regular characters 2. A [] or a [!] is not an empty pattern, why would it? The first would never match and the second would always match which makes it equivalent to ? In those cases the ] is taken as a literal character and does not have special meaning. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/lib/libc/gen/fnmatch.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.