[BZ #3996]
authorUlrich Drepper <drepper@redhat.com>
Wed, 14 Feb 2007 19:52:38 +0000 (19:52 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 14 Feb 2007 19:52:38 +0000 (19:52 +0000)
commit05f135ba3b85e0bf2449df6a678f001453d975ce
tree5f531106f88278f165d2e58e7985ccf639775fc8
parent2f69996772e39953951a3c5d8df885c775601060
[BZ #3996]

2007-02-14  Jakub Jelinek  <jakub@redhat.com>
[BZ #3996]
* posix/glob.c (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.
* posix/globtest.sh: Add a couple of new tests.
ChangeLog
posix/glob.c
posix/globtest.sh