[SCM] Samba Shared Repository - branch master updated
Ralph Böhme
slow at samba.org
Wed Nov 30 03:02:05 UTC 2016
The branch, master has been updated
via 6e95fd8 param: fix lp_parameter_value_is_valid() for parametric options
from 275d9fc tdb: Fix mutexes on FreeBSD
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 6e95fd824739b6d861a648a30bd1e1ab86990647
Author: Ralph Wuerthner <ralph.wuerthner at de.ibm.com>
Date: Mon Nov 28 10:42:33 2016 +0100
param: fix lp_parameter_value_is_valid() for parametric options
Signed-off-by: Ralph Wuerthner <ralph.wuerthner at de.ibm.com>
Reviewed-by: Jeremy Allison <jra at samba.org>
Reviewed-by: Ralph Boehme <slow at samba.org>
Autobuild-User(master): Ralph Böhme <slow at samba.org>
Autobuild-Date(master): Wed Nov 30 04:00:54 CET 2016 on sn-devel-144
-----------------------------------------------------------------------
Summary of changes:
source3/param/loadparm.c | 6 ++++++
1 file changed, 6 insertions(+)
Changeset truncated at 500 lines:
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 21073c6..dc551eb 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1885,6 +1885,12 @@ static bool lp_parameter_value_is_valid(const char *parm_name, const char *val)
uint64_t tmp_int64 = 0;
struct parm_struct *parm;
+ /* parametric options (parameter names containing a colon) cannot
+ be checked and are therefore considered valid. */
+ if (strchr(parm_name, ':') != NULL) {
+ return true;
+ }
+
if (num >= 0) {
parm = &parm_table[num];
switch (parm->type) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list