httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49439] Bug in mod_userdir which prevents suexec from running
Date Mon, 14 Jun 2010 21:23:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49439

--- Comment #1 from Witold Baryluk <baryluk@smp.if.uj.edu.pl> 2010-06-14 17:23:05 EDT
---
Here is a patch for better reference with comments:

--- ./modules/mappers/mod_userdir.c    2006-07-12 05:38:44.000000000 +0200
+++ ../mod_userdir.c    2009-05-10 17:38:36.048667150 +0200
@@ -186,9 +186,11 @@
     const userdir_config *s_cfg;
     char *name = r->uri;
     const char *userdirs;
+    request_rec *notes_req;
     const char *w, *dname;
     char *redirect;
     apr_finfo_t statbuf;
+    

     /*
      * If the URI doesn't match our basic pattern, we've nothing to do with
@@ -312,8 +314,17 @@
             if (*userdirs && dname[0] == 0)
                 r->finfo = statbuf;

+            /* We could be servicing a sub-request; make sure we put notes
+             * on the main request.
+             */
+            if (r->main) {
+                notes_req = r->main;
+            } else {
+                notes_req = r;
+            }
+
             /* For use in the get_suexec_identity phase */
-            apr_table_setn(r->notes, "mod_userdir_user", w);
+            apr_table_setn(notes_req->notes, "mod_userdir_user", w);

             return OK;
         }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message