From 8ef0682954232e7c1f67da3b7d65919216ae2786 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 12 Jul 2004 15:30:23 +0000 Subject: r1468: Dump the parametrical options only once at the end of the service. Fixes Testparm producing huge output and swat creating monster smb.conf files. (This used to be commit 9c41adb98b8eef344203d80ef38cf96a27853c7f) --- source3/param/loadparm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/param/loadparm.c') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index a309fde007..978ea89d5c 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -3552,14 +3552,14 @@ static void dump_a_service(service * pService, FILE * f) ((char *)pService) + pdiff, f); fprintf(f, "\n"); } + } - if (pService->param_opt != NULL) { - data = pService->param_opt; - while(data) { - fprintf(f, "\t%s = %s\n", data->key, data->value); - data = data->next; - } - } + if (pService->param_opt != NULL) { + data = pService->param_opt; + while(data) { + fprintf(f, "\t%s = %s\n", data->key, data->value); + data = data->next; + } } } -- cgit