summaryrefslogtreecommitdiff
path: root/source3/auth/token_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-11 17:30:53 +0200
committerVolker Lendecke <vl@samba.org>2010-07-11 17:33:34 +0200
commitc186f92437a918a256b84be84dcf6de569f0cc20 (patch)
tree30b981e766510627f6241b567326f86a1ab03471 /source3/auth/token_util.c
parentc6a6d884f98aead1f449bc94aee19c3069efca27 (diff)
downloadsamba-c186f92437a918a256b84be84dcf6de569f0cc20.tar.gz
samba-c186f92437a918a256b84be84dcf6de569f0cc20.tar.bz2
samba-c186f92437a918a256b84be84dcf6de569f0cc20.zip
s3: [ug]id_to_unix_... can not fail
Remove some silly failure checks
Diffstat (limited to 'source3/auth/token_util.c')
-rw-r--r--source3/auth/token_util.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 660fcf6192..3a288ddcf2 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -926,11 +926,8 @@ NTSTATUS create_token_from_username(TALLOC_CTX *mem_ctx, const char *username,
if ( lp_idmap_gid(&low, &high) && (gids[i] >= low) && (gids[i] <= high) )
continue;
- if ( !gid_to_unix_groups_sid( gids[i], &unix_group_sid ) ) {
- DEBUG(1,("create_token_from_username: Failed to create SID "
- "for gid %u!\n", (unsigned int)gids[i]));
- continue;
- }
+ gid_to_unix_groups_sid(gids[i], &unix_group_sid);
+
result = add_sid_to_array_unique(tmp_ctx, &unix_group_sid,
&group_sids, &num_group_sids);
if (!NT_STATUS_IS_OK(result)) {