From: Andrew Tridgell Date: Wed, 25 Jun 2008 11:27:17 +0000 (+1000) Subject: make parametic options case insensitive X-Git-Url: http://git.samba.org/samba.git/?p=jra%2Fsamba%2F.git;a=commitdiff_plain;h=927621ba122d9c451bfaac4f2c8ba0e5acbfead3 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 (This used to be commit c10aad9f136b7c2ef4809fd8558013ab2ee40cf6) --- diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8f6af683256..9698feb0609 100644 --- a/source3/param/loadparm.c +++ b/source3/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; }