summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/param/loadparm.c5
-rw-r--r--source4/script/mks3param.pl1
2 files changed, 6 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 2e60ef93b2..fba09fa2c4 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -815,6 +815,11 @@ const char *lpcfg_get_parametric(struct loadparm_context *lp_ctx,
if (lp_ctx == NULL)
return NULL;
+ if (lp_ctx->s3_fns) {
+ SMB_ASSERT(service == NULL);
+ return lp_ctx->s3_fns->get_parametric(type, option);
+ }
+
data = (service == NULL ? lp_ctx->globals->param_opt : service->param_opt);
vfskey_tmp = talloc_asprintf(NULL, "%s:%s", type, option);
diff --git a/source4/script/mks3param.pl b/source4/script/mks3param.pl
index db494e7eb4..76322b1076 100644
--- a/source4/script/mks3param.pl
+++ b/source4/script/mks3param.pl
@@ -84,6 +84,7 @@ sub print_header($$)
$file->("/* This file was automatically generated by mks3param.pl. DO NOT EDIT */\n\n");
$file->("struct loadparm_s3_context\n");
$file->("{\n");
+ $file->("\tconst char * (*get_parametric)(const char *type, const char *option);");
}
sub print_footer($$)