From: Simo Sorce Date: Mon, 12 Jul 2004 15:30:23 +0000 (+0000) Subject: r1468: Dump the parametrical options only once at the end of the service. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5973 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c41adb98b8eef344203d80ef38cf96a27853c7f;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/param/loadparm.c b/source/param/loadparm.c index a309fde007f..978ea89d5c6 100644 --- a/source/param/loadparm.c +++ b/source/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; + } } }