summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-30 16:24:20 +0200
committerroot <root@bando.sernet.private>2008-07-30 16:31:09 +0200
commit1a6aecaea81a06602e2d216a766ab9f7c21f6a77 (patch)
treed41df2c0cfedf87c2587ef9b31d271a5d2d317a6 /source3/param
parent669afbc291233e83d21ef7e2e176afee934a4463 (diff)
downloadsamba-1a6aecaea81a06602e2d216a766ab9f7c21f6a77.tar.gz
samba-1a6aecaea81a06602e2d216a766ab9f7c21f6a77.tar.bz2
samba-1a6aecaea81a06602e2d216a766ab9f7c21f6a77.zip
testparm: Display warning if invalid values are used.
This one came up while using "csc policy = disabled" instead of "disable"... ;-) (This used to be commit d01da44de77abbf724389bce924771f2975867f4)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 0935181e09..6902bb0437 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -7047,9 +7047,11 @@ static void lp_set_enum_parm( struct parm_struct *parm, const char *pszParmValue
for (i = 0; parm->enum_list[i].name; i++) {
if ( strequal(pszParmValue, parm->enum_list[i].name)) {
*ptr = parm->enum_list[i].value;
- break;
+ return;
}
}
+ DEBUG(0, ("WARNING: Ignoring invalid value '%s' for parameter '%s'\n",
+ pszParmValue, parm->label));
}
/***************************************************************************