- if(find_match(hostname,diskname)) {
- find_result_t *new_output_find =
- alloc(SIZEOF(find_result_t));
- new_output_find->next=*output_find;
- new_output_find->timestamp=stralloc(file.datestamp);
- new_output_find->hostname=hostname;
- hostname = NULL;
- new_output_find->diskname=diskname;
- diskname = NULL;
- new_output_find->level=level;
- new_output_find->label=stralloc(destname);
- new_output_find->partnum=stralloc("--");
- new_output_find->filenum=0;
- new_output_find->status=stralloc("OK");
- *output_find=new_output_find;
- }
- }
- closedir(workdir);
- }
- }
- free_sl(holding_list);
- holding_list = NULL;
- amfree(destname);
- amfree(sdirname);
- amfree(hostname);
- amfree(diskname);
+ if(find_match(file.name,file.disk)) {
+ find_result_t *new_output_find =
+ alloc(SIZEOF(find_result_t));
+ new_output_find->next=*output_find;
+ new_output_find->timestamp = stralloc(file.datestamp);
+ new_output_find->hostname = stralloc(file.name);
+ new_output_find->diskname = stralloc(file.disk);
+ new_output_find->level=file.dumplevel;
+ new_output_find->label=stralloc(holding_file);
+ new_output_find->partnum=stralloc("--");
+ new_output_find->filenum=0;
+ new_output_find->status=stralloc("OK");
+ *output_find=new_output_find;
+ }
+ }
+
+ free_sl(holding_file_list);