You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Richard Johnsson <jo...@interval.com> on 1998/02/21 04:20:00 UTC
Re: mod_userdir/1850: References to /~user loop extending file
name until too long.
The following reply was made to PR mod_userdir/1850; it has been noted by GNATS.
From: Richard Johnsson <jo...@interval.com>
To: Dean Gaudet <dg...@arctic.org>
Cc: apbugs@hyperreal.org
Subject: Re: mod_userdir/1850: References to /~user loop extending file
name until too long.
Date: Fri, 20 Feb 1998 19:14:38 -0800
Bingo! Works fine with the patch.
At 04:29 PM 2/20/98 -0800, Dean Gaudet wrote:
>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;
> }
>
>
>