[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-3283-g23f338d
Jeremy Allison
jra at samba.org
Thu Jul 17 16:41:47 GMT 2008
The branch, v3-3-test has been updated
via 23f338d1da96fd4ea3283bc96ca7d496b23bf854 (commit)
from 815383a4178c51311f3c81632a0fa1d19e7098f4 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 23f338d1da96fd4ea3283bc96ca7d496b23bf854
Author: Herb Lewis <herb at samba.org>
Date: Thu Jul 17 09:23:30 2008 -0700
allow SID with 0 in subauthority to be converted properly
from string representation.
-----------------------------------------------------------------------
Summary of changes:
source/nsswitch/libwbclient/wbc_sid.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/nsswitch/libwbclient/wbc_sid.c b/source/nsswitch/libwbclient/wbc_sid.c
index f3d5896..475c994 100644
--- a/source/nsswitch/libwbclient/wbc_sid.c
+++ b/source/nsswitch/libwbclient/wbc_sid.c
@@ -139,7 +139,8 @@ wbcErr wbcStringToSid(const char *str,
p = q +1;
sid->num_auths = 0;
while (sid->num_auths < WBC_MAXSUBAUTHS) {
- if ((x=(uint32_t)strtoul(p, &q, 10)) == 0)
+ x=(uint32_t)strtoul(p, &q, 10);
+ if (p == q)
break;
if (q == NULL) {
wbc_status = WBC_ERR_INVALID_SID;
--
Samba Shared Repository
More information about the samba-cvs
mailing list