httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_negotiation.c
Date Tue, 29 Jan 2002 17:46:30 GMT
wrowe       02/01/29 09:46:30

  Modified:    modules/mappers mod_negotiation.c
  Log:
    Many of our platform's apr_dir_read() aren't returning APR_FINFO_TYPE,
    so we will take the long way through (and the long way for LNK's as well.)
  
  Revision  Changes    Path
  1.94      +8 -1      httpd-2.0/modules/mappers/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_negotiation.c,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- mod_negotiation.c	28 Jan 2002 21:18:10 -0000	1.93
  +++ mod_negotiation.c	29 Jan 2002 17:46:30 -0000	1.94
  @@ -1073,8 +1073,15 @@
           }
   
           /* Don't negotiate directories and other unusual files
  +         * Really shouldn't see anything but DIR/LNK/REG here,
  +         * and we aught to discover if the LNK was interesting.
  +         *
  +         * Of course, this only helps platforms that capture the
  +         * the filetype in apr_dir_read(), which most can once
  +         * they are optimized with some magic [it's known to the
  +         * dirent, not associated to the inode, on most FS's.]
            */
  -        if (dirent.filetype != APR_REG)
  +        if ((dirent.valid & APR_FINFO_TYPE) && (dirent.filetype == APR_DIR))
               continue;
   
           /* Ok, something's here.  Maybe nothing useful.  Remember that
  
  
  

Mime
View raw message