diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-11-27 17:08:30 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-11-27 05:17:32 +0100 |
commit | 5ab6fa18a4e5fffd10c46824dbcd04dd87bbf2f4 (patch) | |
tree | b7bb0323032d05501a5d9c1ad853da52b40ee88f /lib | |
parent | 9cef81db97968f8d69bdae19e8a091225ae86207 (diff) | |
download | samba-5ab6fa18a4e5fffd10c46824dbcd04dd87bbf2f4.tar.gz samba-5ab6fa18a4e5fffd10c46824dbcd04dd87bbf2f4.tar.xz samba-5ab6fa18a4e5fffd10c46824dbcd04dd87bbf2f4.zip |
lib/param: Allow enum values to also be white-space insentive in comparison
This makes it easier to specify these in the --option= syntax on the command line.
Change-Id: I6b2398d79d37407c5d82cd6b540651ede1d09106
Pair-Programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 1a60b997b8..7df46081a1 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -1049,7 +1049,7 @@ bool lp_set_enum_parm( struct parm_struct *parm, const char *pszParmValue, int i; for (i = 0; parm->enum_list[i].name; i++) { - if ( strequal(pszParmValue, parm->enum_list[i].name)) { + if (strwicmp(pszParmValue, parm->enum_list[i].name) == 0) { *ptr = parm->enum_list[i].value; return true; } |