diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-25 12:39:47 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-25 12:40:51 +0100 |
commit | a53a8ec45245353d978e6f845c41d76b2e12a3c6 (patch) | |
tree | d8e5e17391c685941e11b0328e86d78cd30d374f | |
parent | b5d47263162856c423f484df44914271b76b1e53 (diff) | |
download | samba-a53a8ec45245353d978e6f845c41d76b2e12a3c6.tar.gz samba-a53a8ec45245353d978e6f845c41d76b2e12a3c6.tar.bz2 samba-a53a8ec45245353d978e6f845c41d76b2e12a3c6.zip |
Revert "libcli/security: Prohibit SID formats like S-1-5-32-+545"
This reverts commit 1fbeae41655b8305834f2149b1268077eba8633d.
Apparently this breaks the build of Samba4
-rw-r--r-- | libcli/security/dom_sid.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 8a2ed1fccc..6a046cd806 100644 --- a/libcli/security/dom_sid.c +++ b/libcli/security/dom_sid.c @@ -96,20 +96,12 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret) sidstr += 2; - if (!isdigit(sidstr[0])) { - return false; - } - rev = strtoul(sidstr, &p, 10); if (*p != '-') { return false; } sidstr = p+1; - if (!isdigit(sidstr[0])) { - return false; - } - ia = strtoul(sidstr, &p, 10); if (p == sidstr) { return false; @@ -139,11 +131,6 @@ bool dom_sid_parse(const char *sidstr, struct dom_sid *ret) return false; } sidstr++; - - if (!isdigit(sidstr[0])) { - return false; - } - ret->sub_auths[i] = strtoul(sidstr, &p, 10); if (p == sidstr) { return false; |