mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
call initgroups before becomming the user; patch from Fabio Cecchi
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user