summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-09-22 12:14:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:00 -0500
commitcde9a48dfb8d4b5d6394f975ddd519c6c581ef39 (patch)
treed65d70ab0a83b536c985be5cba32e02827e3a94c
parent341ece565c369c8743e7bd8e7e80b37b5a29ad42 (diff)
downloadsamba-cde9a48dfb8d4b5d6394f975ddd519c6c581ef39.tar.gz
samba-cde9a48dfb8d4b5d6394f975ddd519c6c581ef39.tar.bz2
samba-cde9a48dfb8d4b5d6394f975ddd519c6c581ef39.zip
r2513: Avoid strupper/strlower when you can. This developers module
certainly doesn't need it. Andrew Bartlett (This used to be commit 77d7c76c9bc7a4fa109056140a5f4107b4410838)
-rw-r--r--source4/auth/auth_builtin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/auth/auth_builtin.c b/source4/auth/auth_builtin.c
index 002f9f7190..aa5355059c 100644
--- a/source4/auth/auth_builtin.c
+++ b/source4/auth/auth_builtin.c
@@ -89,14 +89,12 @@ static NTSTATUS check_name_to_ntstatus_security(const struct auth_context *auth_
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);