From: Greg Stein Date: Sun, 27 Jan 2002 12:39:25 +0000 (+0000) Subject: APR might not return everything we're asking for. Let that slide... X-Git-Tag: 2.0.31~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11fd7f61e86095e9c7808bb2ed03b98cf50e2f4d;p=apache 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 --- 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);