1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +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:
Simo Sorce 2004-07-12 15:30:23 +00:00 committed by Gerald (Jerry) Carter
parent 4499082b83
commit 8ef0682954

View File

@ -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;
}
}
}