summaryrefslogtreecommitdiff
path: root/file_io/unix/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'file_io/unix/dir.c')
-rw-r--r--file_io/unix/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/dir.c b/file_io/unix/dir.c
index d8eafee55..491197488 100644
--- a/file_io/unix/dir.c
+++ b/file_io/unix/dir.c
@@ -244,7 +244,7 @@ apr_status_t apr_dir_read(apr_finfo_t *finfo, apr_int32_t wanted,
if ((fspec[off - 1] != '/') && (off + 1 < sizeof(fspec)))
fspec[off++] = '/';
apr_cpystrn(fspec + off, thedir->entry->d_name, sizeof(fspec) - off);
- ret = apr_lstat(finfo, fspec, wanted, thedir->pool);
+ ret = apr_stat(finfo, fspec, APR_FINFO_LINK | wanted, thedir->pool);
/* We passed a stack name that will disappear */
finfo->fname = NULL;
}