svn commit: samba r2513 - in branches/SAMBA_4_0/source/auth: .

abartlet at samba.org abartlet at samba.org
Wed Sep 22 12:14:44 GMT 2004


Author: abartlet
Date: 2004-09-22 12:14:44 +0000 (Wed, 22 Sep 2004)
New Revision: 2513

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/auth&rev=2513&nolog=1

Log:
Avoid strupper/strlower when you can.  This developers module
certainly doesn't need it.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/auth_builtin.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_builtin.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_builtin.c	2004-09-22 12:02:16 UTC (rev 2512)
+++ branches/SAMBA_4_0/source/auth/auth_builtin.c	2004-09-22 12:14:44 UTC (rev 2513)
@@ -89,14 +89,12 @@
 	fstrcpy(user, user_info->smb_name.str);
 	
 	if (strncasecmp("NT_STATUS", user, strlen("NT_STATUS")) == 0) {
-		strupper_m(user);
 		return nt_status_string_to_code(user);
 	}
 
-	strlower_m(user);
 	error_num = strtoul(user, NULL, 16);
 	
-	DEBUG(5,("check_name_to_ntstatus_security: Error for user %s was %lx\n", user, error_num));
+	DEBUG(5,("check_name_to_ntstatus_security: Error for user %s was 0x%lx\n", user, error_num));
 
 	nt_status = NT_STATUS(error_num);
 	



More information about the samba-cvs mailing list