Changeset 3194 in MondoRescue for branches/3.2/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Sep 29, 2013, 7:27:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondorestore.c
r3193 r3194 431 431 /** needs malloc **********/ 432 432 char *tmp; 433 char *p = NULL;434 433 char *tmp1 = NULL; 435 434 char *fstab_fname = NULL; … … 460 459 log_it("Done loading config file; resizing ML"); 461 460 462 mr_asprintf(tmp1, "%s", call_program_and_get_last_line_of_output("cat " CMDLINE);461 mr_asprintf(tmp1, "%s", call_program_and_get_last_line_of_output("cat "CMDLINE)); 463 462 if (strstr(tmp1, "noresize")) { 464 463 log_msg(1, "Not resizing mountlist."); … … 578 577 strcpy(tmp, old_restpath); 579 578 // (NB: %s is where your filesystem is mounted now, by default)", MNT_RESTORING); 580 if (popup_and_get_string 581 ("Restore path", "Restore files to where?", tmp, 582 MAX_STR_LEN / 4)) { 579 if (popup_and_get_string("Restore path", "Restore files to where?", tmp, MAX_STR_LEN / 4)) { 583 580 if (!strcmp(tmp, "/")) { 584 581 if (!ask_me_yes_or_no("Are you sure?")) { … … 788 785 twenty_seconds_til_yikes(); 789 786 g_fprep = fopen("/tmp/prep.sh", "w"); 790 mr_asprintf(tmp1, "%s", call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE));787 mr_asprintf(tmp1, "%s", call_program_and_get_last_line_of_output("cat "CMDLINE)); 791 788 if (strstr(tmp1, "nopart")) { 792 789 log_msg(2, "Not partitioning drives due to 'nopart' option."); … … 860 857 861 858 after_the_nuke: 862 mr_asprintf(tmp1, "%s", call_program_and_get_last_line_of_output("cat " CMDLINE,TRUE));859 mr_asprintf(tmp1, "%s", call_program_and_get_last_line_of_output("cat "CMDLINE)); 863 860 if (retval) { 864 861 log_to_screen("Errors occurred during the nuke phase."); … … 912 909 strcpy(bkpinfo->restore_path, "/"); 913 910 if (!g_restoring_live_from_cd && !g_restoring_live_from_netfs) { 914 popup_and_OK 915 ("Please insert tape/CD/USB Key, then hit 'OK' to continue."); 911 popup_and_OK("Please insert tape/CD/USB Key, then hit 'OK' to continue."); 916 912 sleep(1); 917 913 } … … 940 936 save_filelist(filelist, "/tmp/selected-files.txt"); 941 937 mr_asprintf(old_restpath, "%s", bkpinfo->restore_path); 942 if (popup_and_get_string("Restore path", 943 "Restore files to where? )", 944 bkpinfo->restore_path, MAX_STR_LEN / 4)) { 938 if (popup_and_get_string("Restore path", "Restore files to where? ", bkpinfo->restore_path, MAX_STR_LEN / 4)) { 945 939 log_it("Restoring everything"); 946 940 retval += restore_everything(filelist); … … 958 952 } 959 953 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 960 log_msg(2, 961 "Tape : I don't need to unmount or eject the CD-ROM."); 954 log_msg(2, "Tape : I don't need to unmount or eject the CD-ROM."); 962 955 } else { 963 956 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); … … 987 980 * @{ 988 981 */ 982 989 983 /** 990 984 * Restore biggiefile @p bigfileno from the currently mounted CD. … … 998 992 * @return 0 for success (or skip), nonzero for failure. 999 993 */ 1000 int 1001 restore_a_biggiefile_from_CD(long bigfileno, 994 int restore_a_biggiefile_from_CD(long bigfileno, 1002 995 struct s_node *filelist, 1003 996 char *pathname_of_last_file_restored) … … 2204 2197 /** malloc add ****/ 2205 2198 char *tmp = NULL; 2199 char *tmp1 = NULL; 2206 2200 char *biggie_fname; 2207 2201 char *biggie_cksum;
Note:
See TracChangeset
for help on using the changeset viewer.