diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-08-29 09:20:49 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-08-29 09:20:49 +0000 |
commit | 558297b703fc29feb6e6fac205570f24b33d8b37 (patch) | |
tree | 17163b9212a4754942eb9642958f88d7fc513004 /source3/sam | |
parent | 66c389fe92510991e6c9d2cb93443692e5007edb (diff) | |
download | samba-558297b703fc29feb6e6fac205570f24b33d8b37.tar.gz samba-558297b703fc29feb6e6fac205570f24b33d8b37.tar.bz2 samba-558297b703fc29feb6e6fac205570f24b33d8b37.zip |
small fixes
make lp_sam_backend() a list
(This used to be commit 06eb3138ab14ff450bbc44f5fa539867ce67a7dd)
Diffstat (limited to 'source3/sam')
-rw-r--r-- | source3/sam/get_set_domain.c | 1 | ||||
-rw-r--r-- | source3/sam/interface.c | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/source3/sam/get_set_domain.c b/source3/sam/get_set_domain.c index 9e4d41a49e..8ca876524a 100644 --- a/source3/sam/get_set_domain.c +++ b/source3/sam/get_set_domain.c @@ -1,7 +1,6 @@ /* Unix SMB/CIFS implementation. SAM_DOMAIN access routines - Copyright (C) Luke Kenneth Casson Leighton 1996-1998 Copyright (C) Andrew Bartlett 2002 Copyright (C) Stefan (metze) Metzmacher 2002 Copyright (C) Jelmer Vernooij 2002 diff --git a/source3/sam/interface.c b/source3/sam/interface.c index 3d886d7281..ef2a4d5f8a 100644 --- a/source3/sam/interface.c +++ b/source3/sam/interface.c @@ -646,17 +646,17 @@ NTSTATUS context_sam_add_group(const SAM_CONTEXT *context, const SAM_GROUP_HANDL return NT_STATUS_OK; } -NTSTATUS context_sam_update_group(const SAM_CONTEXT *context, const DOM_SID *domainsid, const SAM_GROUP_HANDLE *group) +NTSTATUS context_sam_update_group(const SAM_CONTEXT *context, const SAM_GROUP_HANDLE *group) { DOM_SID domainsid; DOM_SID *groupsid; struct sam_methods *tmp_methods; uint32 rid; - NTSTATUS status; + NTSTATUS nt_status; - if (!NT_STATUS_IS_OK(status = sam_get_group_sid(group, &groupsid))) { + if (!NT_STATUS_IS_OK(nt_status = sam_get_group_sid(group, &groupsid))) { DEBUG(0,("Can't get group SID\n")); - return status; + return nt_status; } sid_copy(&domainsid, groupsid); @@ -665,9 +665,9 @@ NTSTATUS context_sam_update_group(const SAM_CONTEXT *context, const DOM_SID *dom return NT_STATUS_INVALID_SID; } - if (!NT_STATUS_IS_OK(status = sam_get_methods_by_sid(context, &tmp_methods, &domainsid))) { + if (!NT_STATUS_IS_OK(nt_status = sam_get_methods_by_sid(context, &tmp_methods, &domainsid))) { DEBUG(4,("sam_get_methods_by_sid failed\n")); - return status; + return nt_status; } if (!tmp_methods->sam_update_group) { |