summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-07-12 15:30:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:11 -0500
commit8ef0682954232e7c1f67da3b7d65919216ae2786 (patch)
tree05463be52832825baaf45d404f9d7e842fa5eeb5 /source3/param
parent4499082b83515bb15f3ecf6ca4568ab1729c73b7 (diff)
downloadsamba-8ef0682954232e7c1f67da3b7d65919216ae2786.tar.gz
samba-8ef0682954232e7c1f67da3b7d65919216ae2786.tar.bz2
samba-8ef0682954232e7c1f67da3b7d65919216ae2786.zip
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)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c14
1 files changed, 7 insertions, 7 deletions
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;
+ }
}
}