httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: patch to mod_dir.c (fwd)
Date Fri, 06 Mar 1998 04:27:52 GMT
On Thu, 5 Mar 1998, Brian Behlendorf wrote:

> 
> I think we can give that a firm -1.

Hey, Roxen has that... "feature".  Serious.

> 
> 	Brian
> 
> At 01:38 PM 3/4/98 +0000, you wrote:
> >
> >bwaaaahahahaha.
> >
> >---------- Forwarded message ----------
> >Date: Tue, 3 Mar 1998 18:11:19 +0000
> >From: trp@hagar.cyberoptics.com
> >To: apache-bugs@apache.org
> >Subject: patch to mod_dir.c
> >
> >I wanted to have support to see a directory listing even when
> >the index file existed.  The following is a patch to the mod_dir.c
> >file that will show the directory listing if the URI ends with
> >two slashes.
> >
> >------begin
> >--- mod_dir.c.orig      Tue Mar  3 11:12:48 1998
> >+++ mod_dir.c   Tue Mar  3 12:07:23 1998
> >@@ -780,6 +780,7 @@
> >     const char *names_ptr = d->index_names ? d->index_names :
> >DEFAULT_INDEX;
> >     int allow_opts = allow_options (r);
> >     int error_notfound = 0;
> >+    int n;
> > 
> >     if (r->uri[0] == '\0' || r->uri[strlen(r->uri)-1] != '/') {
> >        char* ifile;
> >@@ -801,7 +802,14 @@
> >      */
> > 
> >     r->filename = pstrcat (r->pool, r->filename, "/", NULL);
> >-    
> >+   
> >+    /* trp@cyberoptics.com 3/3/98
> >+     *
> >+     *  check for double slashes at the end -- if so do a directory
> >listing
> >+     */
> >+    n=strlen(r->uri);
> >+    if ((r->uri[n-1]=='/') && (r->uri[n-2]=='/')) { names_ptr="";
}
> >+
> >     while (*names_ptr) {
> >           
> >        char *name_ptr = getword_conf (r->pool, &names_ptr);
> >------end
> >
> >-----------------------------------------------------------------------
> >  win95 - Where do you want to go today, since you can't do any work?
> >            EXPERIENCE Linux -- http://www.redhat.com
> >-----------------------------------------------------------------------
> >Troy R. Pesola                                      trp@cyberoptics.com
> >PGP key available at        http://www.cyberoptics.com/~trp/pgpkey.html
> >CyberOptics Corp.                                          612)542-5000
> >-----------------------------------------------------------------------
> >
> >
> --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
> specialization is for insects				  brian@organic.com
> 


Mime
View raw message