1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Revert "libcli/security: Remove a call to strncasecmp"

This reverts commit 7c687665ea.
This commit is contained in:
Volker Lendecke 2010-01-25 16:44:38 +01:00
parent d86d5be636
commit 005bbd0826

View File

@ -85,12 +85,16 @@ bool dom_sid_equal(const struct dom_sid *sid1, const struct dom_sid *sid2)
return dom_sid_compare(sid1, sid2) == 0;
}
/* Yes, I did think about multibyte issues here, and for all I can see there's
* none of those for parsing a SID. */
#undef strncasecmp
bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
{
uint_t rev, ia, num_sub_auths, i;
char *p;
if ((sidstr[0] != 'S' && sidstr[0] != 's') || sidstr[1] != '-') {
if (strncasecmp(sidstr, "S-", 2)) {
return false;
}