]> granicus.if.org Git - apache/commitdiff
APR might not return everything we're asking for. Let that slide...
authorGreg Stein <gstein@apache.org>
Sun, 27 Jan 2002 12:39:25 +0000 (12:39 +0000)
committerGreg Stein <gstein@apache.org>
Sun, 27 Jan 2002 12:39:25 +0000 (12:39 +0000)
Submitted by: Kenny Sy <itc_kennysy@hotmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93049 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/repos.c

index ffed26aee7ac0d3e9000abc82963a00673f69cd7..190a0481387ece480701d34b43d8b7106a9726a0 100644 (file)
@@ -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);