mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
BUG 1023: surround get_group_from_gid() with become_unbecome_root() block
(This used to be commit 1aeeb432c75eeb67e9e1323932b37d34da416d37)
This commit is contained in:
parent
56e7c149ba
commit
2197bd26ac
@ -149,7 +149,11 @@ NTSTATUS get_alias_user_groups(TALLOC_CTX *ctx, DOM_SID *sid, int *numgroups, ui
|
||||
|
||||
for (i=0;i<num_groups;i++) {
|
||||
|
||||
if (!get_group_from_gid(groups[i], &map)) {
|
||||
become_root();
|
||||
ret = get_group_from_gid(groups[i], &map);
|
||||
unbecome_root();
|
||||
|
||||
if ( !ret ) {
|
||||
DEBUG(10,("get_alias_user_groups: gid %d. not found\n", (int)groups[i]));
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user