httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/fs repos.c
Date Sun, 27 Jan 2002 12:39:25 GMT
gstein      02/01/27 04:39:25

  Modified:    modules/dav/fs repos.c
  Log:
  APR might not return everything we're asking for. Let that slide...
  
  Submitted by: Kenny Sy <itc_kennysy@hotmail.com>
  
  Revision  Changes    Path
  1.64      +4 -2      httpd-2.0/modules/dav/fs/repos.c
  
  Index: repos.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/fs/repos.c,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- repos.c	25 Jan 2002 00:17:31 -0000	1.63
  +++ repos.c	27 Jan 2002 12:39:25 -0000	1.64
  @@ -1459,6 +1459,7 @@
       }
       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 @@
   
   
           /* ### 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);
  
  
  

Mime
View raw message