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:
parent
4499082b83
commit
8ef0682954
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user