Changeset 171 in MondoRescue for trunk/mondo/mondo/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Dec 8, 2005, 5:20:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondorestore/mondo-rstr-compare.c
r142 r171 684 684 685 685 /** needs malloc **/ 686 char *dir, *command ;686 char *dir, *command, *tmp; 687 687 688 688 assert(bkpinfo != NULL); … … 700 700 if (bkpinfo->disaster_recovery 701 701 && does_file_exist("/tmp/CDROM-LIVES-HERE")) { 702 strcpy(bkpinfo->media_device,702 asprintf(&tmp, 703 703 last_line_of_file("/tmp/CDROM-LIVES-HERE")); 704 } else { 705 find_cdrom_device(bkpinfo->media_device, FALSE); 704 paranoid_free(bkpinfo->media_device); 705 bkpinfo->media_device = tmp; 706 } else { 707 paranoid_free(bkpinfo->media_device); 708 bkpinfo->media_device = find_cdrom_device(FALSE); 706 709 } 707 710 res = verify_tape_backups(bkpinfo);
Note:
See TracChangeset
for help on using the changeset viewer.