r24396: Fix a typo.
authorKai Blin <kai@samba.org>
Tue, 14 Aug 2007 07:18:41 +0000 (07:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:01:50 +0000 (15:01 -0500)
Thanks to metze (metze@samba.org) for catching this one.

source/winbind/wb_gid2sid.c

index 40fd9b6c352efc39cf31a6d723aa123ff4a11d42..5c0b87118d1d4591bed0a046307fe6d37eb8d868 100644 (file)
@@ -33,7 +33,7 @@ struct gid2sid_state {
 };
 
 struct composite_context *wb_gid2sid_send(TALLOC_CTX *mem_ctx,
-               struct wbsrv_service *service, uid_t uid)
+               struct wbsrv_service *service, gid_t gid)
 {
        struct composite_context *result;
        struct gid2sid_state *state;
@@ -51,8 +51,8 @@ struct composite_context *wb_gid2sid_send(TALLOC_CTX *mem_ctx,
        state->service = service;
 
        /* FIXME: This is a stub so far.
-        * We cheat by just using the uid as RID with the domain SID.*/
-       state->sid = dom_sid_add_rid(result, service->primary_sid, uid);
+        * We cheat by just using the gid as RID with the domain SID.*/
+       state->sid = dom_sid_add_rid(result, service->primary_sid, gid);
        if (composite_nomem(state->sid, state->ctx)) return result;
 
        composite_done(state->ctx);