updatecount++;
- fname = talloc_strdup(ctx, lp_lockdir());
- if (!fname) {
- return;
- }
- trim_char(fname,'\0' ,'/');
- fname = talloc_asprintf_append(fname,
- "/%s",
- SERVER_LIST);
+ fname = cache_path(SERVER_LIST);
if (!fname) {
return;
}
bool local_list_only;
int i;
- lines = file_lines_load(lock_path(SERVER_LIST), NULL, 0, NULL);
+ lines = file_lines_load(cache_path(SERVER_LIST), NULL, 0, NULL);
if (!lines) {
- DEBUG(4,("Can't open %s - %s\n",lock_path(SERVER_LIST),strerror(errno)));
+ DEBUG(4,("Can't open %s - %s\n",cache_path(SERVER_LIST),strerror(errno)));
return 0;
}