diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-06-04 05:12:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-06-04 05:12:46 +0000 |
commit | 1fb2614ae5c21a199893a1919846a7057bdb889f (patch) | |
tree | bb47868c6a98fb7e1903100ef42ec1057e292fe4 /sysdeps/generic | |
parent | 332afd9ecdb835e2d0a9606f311b3d086a00d4e3 (diff) | |
download | glibc-1fb2614ae5c21a199893a1919846a7057bdb889f.tar.gz glibc-1fb2614ae5c21a199893a1919846a7057bdb889f.tar.xz 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/generic')
-rw-r--r-- | sysdeps/generic/glob.c | 4 |
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 |