git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8b8f8
)
tiny simplification
author
Volker Lendecke
<vl@samba.org>
Sat, 22 Dec 2007 23:32:09 +0000
(
00:32
+0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 22 Dec 2007 23:49:32 +0000
(
00:49
+0100)
source/lib/winbind_util.c
patch
|
blob
|
history
diff --git
a/source/lib/winbind_util.c
b/source/lib/winbind_util.c
index f4e7ab19e89dc69c5d43b9230216829b69b1fbcc..f51a0171a23998e4b1f6950cd94cd536c5e729a3 100644
(file)
--- a/
source/lib/winbind_util.c
+++ b/
source/lib/winbind_util.c
@@
-105,8
+105,6
@@
bool winbind_sid_to_uid(uid_t *puid, const DOM_SID *sid)
memcpy(&dom_sid, sid, sizeof(dom_sid));
result = wbcSidToUid(&dom_sid, puid);
- if (result != WBC_ERR_SUCCESS)
- return False;
return (result == WBC_ERR_SUCCESS);
}
@@
-138,8
+136,6
@@
bool winbind_sid_to_gid(gid_t *pgid, const DOM_SID *sid)
memcpy(&dom_sid, sid, sizeof(dom_sid));
result = wbcSidToGid(&dom_sid, pgid);
- if (result != WBC_ERR_SUCCESS)
- return False;
return (result == WBC_ERR_SUCCESS);
}