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/generators mod_autoindex.c
Date Fri, 28 Dec 2001 17:07:33 GMT
wrowe       01/12/28 09:07:33

  Modified:    modules/generators mod_autoindex.c
  Log:
    This otherwise ineffectual patch allows modules to perform internal
    redirects of dirs into other resources, while still treating such a
    resource as a dir, based on the original apr_dir_read results.
  
  Revision  Changes    Path
  1.91      +2 -2      httpd-2.0/modules/generators/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_autoindex.c,v
  retrieving revision 1.90
  retrieving revision 1.91
  diff -u -r1.90 -r1.91
  --- mod_autoindex.c	2001/12/27 18:12:15	1.90
  +++ mod_autoindex.c	2001/12/28 17:07:33	1.91
  @@ -1298,7 +1298,7 @@
       }
   
       p = (struct ent *) apr_pcalloc(r->pool, sizeof(struct ent));
  -    if (rr->finfo.filetype == APR_DIR) {
  +    if (dirent->filetype == APR_DIR) {
           p->name = apr_pstrcat(r->pool, dirent->name, "/", NULL);
       }
       else {
  @@ -1316,7 +1316,7 @@
   
       if (autoindex_opts & (FANCY_INDEXING | TABLE_INDEXING)) {
           p->lm = rr->finfo.mtime;
  -        if (rr->finfo.filetype == APR_DIR) {
  +        if (dirent->filetype == APR_DIR) {
               if (autoindex_opts & FOLDERS_FIRST) {
                   p->isdir = 1;
               }
  
  
  

Mime
View raw message