Changeset 3193 in MondoRescue for branches/3.1/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Sep 29, 2013, 9:31:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/mondorestore/mondorestore.c
r3161 r3193 582 582 log_msg(1, "Restoring subset"); 583 583 retval += restore_everything(filelist); 584 free_filelist(filelist); 584 585 } else { 585 586 mr_free(bkpinfo->restore_path); … … 839 840 "Using tune2fs/tune4fs to identify your ext2,3,4 partitions"); 840 841 841 mr_asprintf(tmp , "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", MINDI_CACHE"/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE);842 mr_asprintf(tmp1, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", MINDI_CACHE"/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE); 842 843 res = run_program_and_log_output(tmp, TRUE); 843 mr_free(tmp );844 mr_free(tmp1); 844 845 if (res) { 845 846 log_to_screen("label-partitions-as-necessary returned an error"); … … 2045 2046 int res; 2046 2047 int attempts; 2047 long current_tarball_number = 0 ;2048 long current_tarball_number = 0L; 2048 2049 long max_val; 2049 2050 /**malloc ***/ … … 2620 2621 mr_free(tmp1); 2621 2622 2623 mountlist = (struct mountlist_itself *)mr_malloc(sizeof(struct mountlist_itself)); 2624 raidlist = (struct raidlist_itself *)mr_malloc(sizeof(struct raidlist_itself)); 2625 2626 2627 2622 2628 /* Init GUI */ 2623 2629 setup_newt_stuff(); /* call newtInit and setup screen log */ … … 2666 2672 2667 2673 log_it("what time is it"); 2668 2669 mountlist = (struct mountlist_itself *)mr_malloc(sizeof(struct mountlist_itself));2670 raidlist = (struct raidlist_itself *)mr_malloc(sizeof(struct raidlist_itself));2671 2674 2672 2675 /* Process command-line parameters */ … … 2799 2802 mount_boot_if_necessary(); /* for Gentoo users */ 2800 2803 log_msg(2, "Still here."); 2801 /* Adding an initialisation in order to avoid to h ndle NULL pointer later */2804 /* Adding an initialisation in order to avoid to handle NULL pointer later */ 2802 2805 mr_free(bkpinfo->restore_path); 2803 2806 mr_asprintf(bkpinfo->restore_path, "%s", "/tmp");
Note:
See TracChangeset
for help on using the changeset viewer.