summaryrefslogtreecommitdiffstats
path: root/lib/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/param/loadparm.c')
-rw-r--r--lib/param/loadparm.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index a707753a3e..f4ee64973c 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -91,10 +91,6 @@ static bool defaults_saved = false;
#define N_(x) x
#endif
-/* prototypes for the special type handlers */
-static bool handle_include(struct loadparm_context *lp_ctx, int unused,
- const char *pszParmValue, char **ptr);
-
#include "lib/param/param_table.c"
/* local variables */
@@ -1105,10 +1101,16 @@ bool handle_realm(struct loadparm_context *lp_ctx, int unused,
Handle the include operation.
***************************************************************************/
-static bool handle_include(struct loadparm_context *lp_ctx, int unused,
+bool handle_include(struct loadparm_context *lp_ctx, int unused,
const char *pszParmValue, char **ptr)
{
- char *fname = standard_sub_basic(lp_ctx, pszParmValue);
+ char *fname;
+
+ if (lp_ctx->s3_fns) {
+ return lp_ctx->s3_fns->lp_include(lp_ctx, unused, pszParmValue, ptr);
+ }
+
+ fname = standard_sub_basic(lp_ctx, pszParmValue);
add_to_file_list(lp_ctx, &lp_ctx->file_lists, pszParmValue, fname);