configuration as values. I would really like to check whether
the valuename is a valid parameter name (with lp_parameter_is_valid)
here, but unfortunately, regedit cereates new values as
"New Value #1" (and so on) first, before dropping into the
rename box. So this is impossible here.
Michael
(This used to be commit
10014833da868289ae28db2e7c1edfd353ca7b2b)
static BOOL smbconf_store_values( const char *key, REGVAL_CTR *val )
{
+ int i;
+ int num_values = regval_ctr_numvals(val);
+
+ for (i=0; i < num_values; i++) {
+ REGISTRY_VALUE *theval = regval_ctr_specific_value(val, i);
+ const char *valname = regval_name(theval);
+
+ if (registry_smbconf_valname_forbidden(valname)) {
+ DEBUG(0, ("smbconf_store_values: value '%s' forbidden "
+ "in registry.\n", valname));
+ return False;
+ }
+ }
return regdb_ops.store_values(key, val);
}