1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

utils: Make debug level strings case-insensitive

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit c700dd0c7b6b43b61b3e231643b5d7cbe2f9592a)
This commit is contained in:
Martin Schwenke 2013-09-23 16:21:30 +10:00 committed by Amitay Isaacs
parent 5b2c8ba880
commit 066b671de0

View File

@ -657,7 +657,7 @@ int32_t get_debug_by_desc(const char *desc)
int i;
for (i=0; debug_levels[i].description != NULL; i++) {
if (!strcmp(debug_levels[i].description, desc)) {
if (!strcasecmp(debug_levels[i].description, desc)) {
return debug_levels[i].level;
}
}