From b5da5f7379d5efeb3828841ccb6d07ed821817cd Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Mon, 22 Aug 2011 16:32:03 +1000 Subject: s4-param: Use s3 dump method if s3 context is defined Signed-off-by: Andrew Bartlett --- source4/param/loadparm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/param') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 74c0550522..e4f1c8598d 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -3589,6 +3589,10 @@ void lpcfg_dump(struct loadparm_context *lp_ctx, FILE *f, bool show_defaults, { int iService; + if (lp_ctx->s3_fns) { + return lp_ctx->s3_fns->dump(f, show_defaults, maxtoprint); + } + defaults_saved = !show_defaults; dump_globals(lp_ctx, f, show_defaults); -- cgit