summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-03 01:11:43 +0100
committerGünther Deschner <gd@samba.org>2011-03-04 01:18:42 +0100
commitef87f970b324d20cdd1b754a3096cf47b78a490f (patch)
tree43d48a037866826942f1a7c456f13ed1dc05fb2c /source3
parentdc35442fb163c6f14cf8c5730056a4a094ead85a (diff)
downloadsamba-ef87f970b324d20cdd1b754a3096cf47b78a490f.tar.gz
samba-ef87f970b324d20cdd1b754a3096cf47b78a490f.tar.bz2
samba-ef87f970b324d20cdd1b754a3096cf47b78a490f.zip
s3-nterr: use strcasecmp in nt_status_string_to_code().
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/nterr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/nterr.c b/source3/libsmb/nterr.c
index 866c025fbb..1ba2691a05 100644
--- a/source3/libsmb/nterr.c
+++ b/source3/libsmb/nterr.c
@@ -20,6 +20,7 @@
/* NT error codes. please read nterr.h */
#include "includes.h"
+#undef strcasecmp
#if !defined(N_)
#define N_(string) string
@@ -764,7 +765,7 @@ NTSTATUS nt_status_string_to_code(const char *nt_status_str)
int idx = 0;
while (nt_errs[idx].nt_errstr != NULL) {
- if (strcmp(nt_errs[idx].nt_errstr, nt_status_str) == 0) {
+ if (strcasecmp(nt_errs[idx].nt_errstr, nt_status_str) == 0) {
return nt_errs[idx].nt_errcode;
}
idx++;