1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

call initgroups before becomming the user; patch from Fabio Cecchi

(This used to be commit 5a8dbccd66)
This commit is contained in:
Gerald Carter 2003-10-21 14:19:32 +00:00
parent 7c6c6b6628
commit da8048b4fa

View File

@ -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 */