The following reply was made to PR mod_userdir/1850; it has been noted by GNATS.

From: Dean Gaudet <[EMAIL PROTECTED]>
To: Richard Johnsson <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: mod_userdir/1850: References to /~user loop extending file name 
until too long.
Date: Fri, 20 Feb 1998 16:29:32 -0800 (PST)

 Try this patch please. 
 
 Dean
 
 Index: modules/standard/mod_userdir.c
 ===================================================================
 RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_userdir.c,v
 retrieving revision 1.28
 diff -u -r1.28 mod_userdir.c
 --- mod_userdir.c      1998/02/14 03:26:58     1.28
 +++ mod_userdir.c      1998/02/21 00:12:04
 @@ -313,7 +313,10 @@
           */
          if (filename && (!*userdirs || stat(filename, &statbuf) != -1)) {
              r->filename = pstrcat(r->pool, filename, dname, NULL);
 -          if (*userdirs)
 +          /* when statbuf contains info on r->filename we can save a syscall
 +           * by copying it to r->finfo
 +           */
 +          if (*userdirs && dname[0] == 0)
                r->finfo = statbuf;
              return OK;
          }
 

Reply via email to