mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
call initgroups before becomming the user; patch from Fabio Cecchi
(This used to be commit 5a8dbccd66
)
This commit is contained in:
parent
7c6c6b6628
commit
da8048b4fa
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user