summaryrefslogtreecommitdiffstats
path: root/modules/mappers/mod_userdir.c
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2002-04-25 09:18:40 +0200
committerJustin Erenkrantz <jerenkrantz@apache.org>2002-04-25 09:18:40 +0200
commit924fc33d0602d8e1dafedfe51a9173bd9005fa7e (patch)
tree977029b6a0206b46f8796d2b1c091fb15383b4b4 /modules/mappers/mod_userdir.c
parentSince UserDir is a raw argument, our config system allows it to be blank. (diff)
downloadapache2-924fc33d0602d8e1dafedfe51a9173bd9005fa7e.tar.xz
apache2-924fc33d0602d8e1dafedfe51a9173bd9005fa7e.zip
Fix suexec invocations from userdir - the ~ was not being prepended to the
uid per our convention. Therefore, bad things would happen (like we wouldn't cd to the right directory). Add a flag to the ap_unix_identity_t structure to indicate if we are in a userdir - if so, prefix the ~. (Modified by Justin, but Colm's patch pointed me in the right direction.) PR: 7810 Submitted by: Colm <colmmacc@redbrick.dcu.ie> Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers/mod_userdir.c')
-rw-r--r--modules/mappers/mod_userdir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mappers/mod_userdir.c b/modules/mappers/mod_userdir.c
index 151ac35920..d8b36fdfb0 100644
--- a/modules/mappers/mod_userdir.c
+++ b/modules/mappers/mod_userdir.c
@@ -379,6 +379,7 @@ static ap_unix_identity_t *get_suexec_id_doer(const request_rec *r)
return NULL;
}
+ ugid->userdir = 1;
#endif
return ugid;
}