mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Revert "libcli/security: Prohibit SID formats like S-1-5-32-+545"
This reverts commit 1fbeae41655b8305834f2149b1268077eba8633d. Apparently this breaks the build of Samba4
This commit is contained in:
parent
b5d4726316
commit
a53a8ec452
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user