From 11fd7f61e86095e9c7808bb2ed03b98cf50e2f4d Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Sun, 27 Jan 2002 12:39:25 +0000 Subject: [PATCH] APR might not return everything we're asking for. Let that slide... Submitted by: Kenny Sy git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93049 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/fs/repos.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index ffed26aee7..190a048138 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -1459,6 +1459,7 @@ static dav_error * dav_fs_walker(dav_fs_walker_context *fsctx, int depth) } while ((apr_dir_read(&dirent, APR_FINFO_DIRENT, dirp)) == APR_SUCCESS) { apr_size_t len; + apr_status_t status; len = strlen(dirent.name); @@ -1488,8 +1489,9 @@ static dav_error * dav_fs_walker(dav_fs_walker_context *fsctx, int depth) /* ### Optimize me, dirent can give us what we need! */ - if (apr_lstat(&fsctx->info1.finfo, fsctx->path1.buf, - APR_FINFO_NORM, pool) != APR_SUCCESS) { + status = apr_lstat(&fsctx->info1.finfo, fsctx->path1.buf, + APR_FINFO_NORM, pool); + if (status != APR_SUCCESS && status != APR_INCOMPLETE) { /* woah! where'd it go? */ /* ### should have a better error here */ err = dav_new_error(pool, HTTP_NOT_FOUND, 0, NULL); -- 2.40.0