Changeset 1653 in MondoRescue for branches/2.2.5/mondo/src/mondorestore/mondo-restore.c
- Timestamp:
- Sep 24, 2007, 2:01:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondorestore/mondo-restore.c
r1650 r1653 2892 2892 exit(127); 2893 2893 } 2894 if (! 2895 (bkpinfo = malloc(sizeof(struct s_bkpinfo)))) { 2896 fatal_error("Cannot malloc bkpinfo"); 2897 } 2898 reset_bkpinfo(); 2894 2899 2895 2900 g_loglevel = DEFAULT_MR_LOGLEVEL; … … 2912 2917 g_text_mode = FALSE; 2913 2918 } // newt :-) 2914 if (!2915 (bkpinfo = malloc(sizeof(struct s_bkpinfo)))) {2916 fatal_error("Cannot malloc bkpinfo");2917 }2918 2919 if (!(mountlist = malloc(sizeof(struct mountlist_itself)))) { 2919 2920 fatal_error("Cannot malloc mountlist"); … … 2938 2939 malloc_string(b); 2939 2940 setup_MR_global_filenames(); // malloc() and set globals, using bkpinfo->tmpdir etc. 2940 reset_bkpinfo();2941 2941 bkpinfo->backup_media_type = none; // in case boot disk was made for one backup type but user wants to restore from another backup type 2942 2942 bkpinfo->restore_data = TRUE; // Well, yeah :-) … … 2970 2970 2971 2971 /* Init directories */ 2972 make_hole_for_dir(bkpinfo->tmpdir);2973 sprintf(tmp, "mkdir -p %s", bkpinfo->tmpdir);2974 run_program_and_log_output(tmp, FALSE);2975 2972 make_hole_for_dir("/var/log"); 2976 2973 make_hole_for_dir("/tmp/tmpfs"); /* just in case... */
Note:
See TracChangeset
for help on using the changeset viewer.