Changeset 3866 in MondoRescue for branches/3.3/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Mar 7, 2024, 1:55:18 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/mondorestore/mondorestore.c
r3862 r3866 207 207 mr_asprintf(tmp1,"%s/var/lib/multipath/bindings",bkpinfo->restore_path); 208 208 (void)unlink(tmp1); 209 paranoid_free(tmp1);209 mr_free(tmp1); 210 210 211 211 /* Edit multipath.conf if needed to adapt wwid */ … … 214 214 log_msg(2, "We may need to clean /etc/multipath.conf"); 215 215 } else { 216 paranoid_free(tmp1);216 mr_free(tmp1); 217 217 return; 218 218 } 219 paranoid_free(tmp1);219 mr_free(tmp1); 220 220 221 221 if (bkpinfo->restore_mode != nuke) { 222 mr_asprintf(editor, "%s", find_my_editor());222 editor = find_my_editor(); 223 223 mr_asprintf(tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor); 224 224 popup_and_OK("You will now edit multipath.conf"); … … 230 230 newtResume(); 231 231 } 232 paranoid_free(tmp1);233 paranoid_free(editor);232 mr_free(tmp1); 233 mr_free(editor); 234 234 } else { 235 235 log_to_screen("Non-interactive mode: no way to give you the keyboard so that you edit your multipath.conf. Hope it's OK"); … … 1767 1767 1768 1768 log_msg(1, "restoring everything"); 1769 if ( !find_home_of_exe("petris") && !g_text_mode) {1769 if (((tmp = find_home_of_exe("petris")) != NULL) && !g_text_mode) { 1770 1770 newtDrawRootText(0, g_noof_rows - 2, 1771 1771 "Press ALT-<left cursor> twice to play Petris :-) "); 1772 1772 newtRefresh(); 1773 1773 } 1774 mr_free(tmp); 1774 1775 mvaddstr_and_log_it(g_currentY, 0, "Preparing to read your archives"); 1775 1776 mount_media(); … … 1842 1843 1843 1844 /** needs malloc **********/ 1845 char *tmp = NULL; 1844 1846 char *tmp1 = NULL; 1845 1847 char *fstab_fname = NULL; … … 1881 1883 if (g_text_mode) { 1882 1884 save_mountlist_to_disk(mountlist, g_mountlist_fname); 1883 mr_asprintf(tmp1, "%s %s", find_my_editor(), g_mountlist_fname); 1885 tmp = find_my_editor(); 1886 mr_asprintf(tmp1, "%s %s", tmp, g_mountlist_fname); 1887 mr_free(tmp); 1884 1888 res = system(tmp1); 1885 1889 mr_free(tmp1);
Note:
See TracChangeset
for help on using the changeset viewer.