svn commit: samba r2431 - in branches/SAMBA_4_0/source: auth libads
tridge at samba.org
tridge at samba.org
Mon Sep 20 07:22:00 GMT 2004
Author: tridge
Date: 2004-09-20 07:22:00 +0000 (Mon, 20 Sep 2004)
New Revision: 2431
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=2431&nolog=1
Log:
got rid of strnequal() in a couple of places
Modified:
branches/SAMBA_4_0/source/auth/auth_builtin.c
branches/SAMBA_4_0/source/libads/ldap.c
Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_builtin.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_builtin.c 2004-09-20 07:21:26 UTC (rev 2430)
+++ branches/SAMBA_4_0/source/auth/auth_builtin.c 2004-09-20 07:22:00 UTC (rev 2431)
@@ -88,7 +88,7 @@
long error_num;
fstrcpy(user, user_info->smb_name.str);
- if (strnequal("NT_STATUS", user, strlen("NT_STATUS"))) {
+ if (strncasecmp("NT_STATUS", user, strlen("NT_STATUS")) == 0) {
strupper_m(user);
return nt_status_string_to_code(user);
}
Modified: branches/SAMBA_4_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_4_0/source/libads/ldap.c 2004-09-20 07:21:26 UTC (rev 2430)
+++ branches/SAMBA_4_0/source/libads/ldap.c 2004-09-20 07:22:00 UTC (rev 2431)
@@ -1653,7 +1653,7 @@
attr;
attr = ldap_next_attribute(ads->ld, (LDAPMessage *)msg, ptr)) {
/* we ignore the fact that this is utf8, as all attributes are ascii... */
- if (strnequal(attr, expected_range_attrib, strlen(expected_range_attrib))) {
+ if (strncasecmp(attr, expected_range_attrib, strlen(expected_range_attrib)) == 0) {
range_attr = attr;
break;
}
More information about the samba-cvs
mailing list