Changeset 2352 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Aug 28, 2009, 2:46:29 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondorestore.c
r2338 r2352 752 752 /** malloc **/ 753 753 char *tmp = NULL; 754 char *tmpA = NULL; 755 char *tmpB = NULL; 756 char *tmpC = NULL; 754 char *flaws_str = NULL; 757 755 758 756 assert(bkpinfo != NULL); 759 757 assert(mountlist != NULL); 760 758 assert(raidlist != NULL); 761 762 mr_asprintf(tmpA, "%s", " ");763 mr_asprintf(tmpB, "%s", " ");764 mr_asprintf(tmpC, "%s", " ");765 759 766 760 log_msg(2, "nuke_mode --- starting"); … … 773 767 resize_mountlist_proportionately_to_suit_new_drives(mountlist); 774 768 } 775 if (!evaluate_mountlist(mountlist, tmpA, tmpB, tmpC)) { 776 mr_asprintf(tmp, "Mountlist analyzed. Result: \"%s %s %s\" Switch to Interactive Mode?", tmpA, tmpB, tmpC); 769 flaws_str = evaluate_mountlist(mountlist, &res); 770 if (!res) { 771 mr_asprintf(tmp, "Mountlist analyzed. Result: \"%s\" Switch to Interactive Mode?", flaws_str); 772 mr_free(flaws_str); 777 773 res = ask_me_yes_or_no(tmp); 778 774 mr_free(tmp); … … 784 780 } 785 781 } 782 mr_free(flaws_str); 783 786 784 save_mountlist_to_disk(mountlist, g_mountlist_fname); 787 785 mvaddstr_and_log_it(1, 30, "Restoring Automatically");
Note:
See TracChangeset
for help on using the changeset viewer.