mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
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 9c41adb98b
)
This commit is contained in:
parent
4499082b83
commit
8ef0682954
@ -3552,14 +3552,14 @@ static void dump_a_service(service * pService, FILE * f)
|
|||||||
((char *)pService) + pdiff, f);
|
((char *)pService) + pdiff, f);
|
||||||
fprintf(f, "\n");
|
fprintf(f, "\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (pService->param_opt != NULL) {
|
if (pService->param_opt != NULL) {
|
||||||
data = pService->param_opt;
|
data = pService->param_opt;
|
||||||
while(data) {
|
while(data) {
|
||||||
fprintf(f, "\t%s = %s\n", data->key, data->value);
|
fprintf(f, "\t%s = %s\n", data->key, data->value);
|
||||||
data = data->next;
|
data = data->next;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user