From: Andrew Tridgell Date: Wed, 25 Jun 2008 11:27:17 +0000 (+1000) Subject: make parametic options case insensitive X-Git-Tag: samba-3.3.0pre1~769 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c10aad9f136b7c2ef4809fd8558013ab2ee40cf6;p=thirdparty%2Fsamba.git make parametic options case insensitive This is needed as some options are uppercased internally in Samba, such as the idmap config option Without this change it is not possible to set these options via net conf which lowercases options --- diff --git a/source/param/loadparm.c b/source/param/loadparm.c index 8f6af683256..9698feb0609 100644 --- a/source/param/loadparm.c +++ b/source/param/loadparm.c @@ -5380,7 +5380,7 @@ static param_opt_struct *get_parametrics(int snum, const char *type, const char } while (data) { - if (strcmp(data->key, param_key) == 0) { + if (strcasecmp(data->key, param_key) == 0) { string_free(¶m_key); return data; }