From 1fb2614ae5c21a199893a1919846a7057bdb889f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 4 Jun 2003 05:12:46 +0000 Subject: Update. 2003-06-03 Ulrich Drepper * 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. --- sysdeps/generic/glob.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysdeps') 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 -- cgit v1.2.3