git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f524395
)
Use sid_peek_rid() instead of sid_split_rid().
author
Tim Potter
<tpot@samba.org>
Thu, 10 May 2001 05:19:47 +0000
(
05:19
+0000)
committer
Tim Potter
<tpot@samba.org>
Thu, 10 May 2001 05:19:47 +0000
(
05:19
+0000)
(This used to be commit
0e03209af6f70c3c0c52072fe904ba5750676b63
)
source3/nsswitch/winbindd_sid.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/winbindd_sid.c
b/source3/nsswitch/winbindd_sid.c
index bc014f26918d39a97694978c093cef51e32cf22d..e426dd588e0f8afb17e84e736a8207e7b77f5502 100644
(file)
--- a/
source3/nsswitch/winbindd_sid.c
+++ b/
source3/nsswitch/winbindd_sid.c
@@
-30,7
+30,7
@@
enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
{
extern DOM_SID global_sid_Builtin;
enum SID_NAME_USE type;
- DOM_SID sid
, tmp_sid
;
+ DOM_SID sid;
uint32 rid;
fstring name;
@@
-43,8
+43,7
@@
enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
/* Don't look up BUILTIN sids */
- sid_copy(&tmp_sid, &sid);
- sid_split_rid(&tmp_sid, &rid);
+ sid_peek_rid(&sid, &rid);
if (sid_equal(&tmp_sid, &global_sid_Builtin)) {
return WINBINDD_ERROR;