aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-04 05:12:46 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-04 05:12:46 +0000
commit1fb2614ae5c21a199893a1919846a7057bdb889f (patch)
treebb47868c6a98fb7e1903100ef42ec1057e292fe4 /sysdeps
parent332afd9ecdb835e2d0a9606f311b3d086a00d4e3 (diff)
downloadglibc-1fb2614ae5c21a199893a1919846a7057bdb889f.tar
glibc-1fb2614ae5c21a199893a1919846a7057bdb889f.tar.gz
glibc-1fb2614ae5c21a199893a1919846a7057bdb889f.tar.bz2
glibc-1fb2614ae5c21a199893a1919846a7057bdb889f.zip
Update.
2003-06-03 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/glob.c [HAVE_D_TYPE] (glob_in_dir): Also allow DT_LNK entries if GLOB_ONLYDIR is set [PR libc/5043]. * posix/globtest.sh: Adjust for this change.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/glob.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/generic/glob.c b/sysdeps/generic/glob.c
index fa23f8cac1..8ab8e43a51 100644
--- a/sysdeps/generic/glob.c
+++ b/sysdeps/generic/glob.c
@@ -1388,7 +1388,9 @@ glob_in_dir (pattern, directory, flags, errfunc, pglob)
/* If we shall match only directories use the information
provided by the dirent call if possible. */
if ((flags & GLOB_ONLYDIR)
- && d->d_type != DT_UNKNOWN && d->d_type != DT_DIR)
+ && d->d_type != DT_UNKNOWN
+ && d->d_type != DT_DIR
+ && d->d_type != DT_LNK)
continue;
#endif