This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
libc/posix glob.c
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 Feb 2007 19:52:21 -0000
- Subject: libc/posix glob.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sourceware.org 2007-02-14 19:52:21
Modified files:
posix : glob.c
Log message:
(attribute_hidden): Define if not defined.
(glob): Unescape dirname, filename or username when needed and not
GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
is NULL. Handle unescaped [ in pattern without closing ].
Don't pass GLOB_CHECK down to recursive glob for directories.
(__glob_pattern_type): New function.
(__glob_pattern_p): Implement using __glob_pattern_type.
(glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
characters and backslashes if not GLOB_NOESCAPE or unterminated [.
Remove unreachable code.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/glob.c.diff?cvsroot=glibc&r1=1.72&r2=1.73