git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a771c18
)
libcli/security: Remove a call to strncasecmp
author
Volker Lendecke
<vl@samba.org>
Sat, 23 Jan 2010 12:48:49 +0000
(13:48 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 23 Jan 2010 15:28:11 +0000
(16:28 +0100)
libcli/security/dom_sid.c
patch
|
blob
|
history
diff --git
a/libcli/security/dom_sid.c
b/libcli/security/dom_sid.c
index 0c8890079af7e8d99305fe4e83391e20f8a6af1b..7cb50c926c4bdeef9a576ac4d308c8c74bd6c716 100644
(file)
--- a/
libcli/security/dom_sid.c
+++ b/
libcli/security/dom_sid.c
@@
-85,16
+85,12
@@
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 (
strncasecmp(sidstr, "S-", 2)
) {
+ if (
(sidstr[0] != 'S' && sidstr[0] != 's') || sidstr[1] != '-'
) {
return false;
}