git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc14d8c
)
call initgroups before becomming the user; patch from Fabio Cecchi
author
Gerald Carter
<jerry@samba.org>
Tue, 21 Oct 2003 14:20:02 +0000
(14:20 +0000)
committer
Gerald Carter
<jerry@samba.org>
Tue, 21 Oct 2003 14:20:02 +0000
(14:20 +0000)
(This used to be commit
e0db859a312207d961e3a581dfd15d9701bca16d
)
source3/web/cgi.c
patch
|
blob
|
history
diff --git
a/source3/web/cgi.c
b/source3/web/cgi.c
index 212c2884b603f4ac7eb06b8c8fbd5379b2b1d6aa..8e739cd224e7fb513b09cb07ae3f2a1c0db3606d 100644
(file)
--- a/
source3/web/cgi.c
+++ b/
source3/web/cgi.c
@@
-342,6
+342,9
@@
static BOOL cgi_handle_authorization(char *line)
* Password was ok.
*/
+ if ( initgroups(pass->pw_name, pass->pw_gid) != 0 )
+ goto err;
+
become_user_permanently(pass->pw_uid, pass->pw_gid);
/* Save the users name */