Changeset 2316 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- Aug 18, 2009, 2:34:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondorestore.c
r2296 r2316 439 439 /** needs malloc **********/ 440 440 char *tmp; 441 char *p = NULL; 441 442 char *tmp1 = NULL; 442 443 char *fstab_fname; … … 470 471 read_cfg_file_into_bkpinfo(g_mondo_cfg_file); 471 472 log_it("Done loading config file; resizing ML"); 472 if (bkpinfo->backup_media_type == nfs) {473 strcpy(tmp, bkpinfo->prefix);474 if (popup_and_get_string475 ("Prefix", "Prefix of your ISO images ?", tmp, MAX_STR_LEN / 4)) {476 strcpy(bkpinfo->prefix, tmp);477 log_msg(1, "Prefix set to %s",bkpinfo->prefix);478 }479 }480 473 481 474 #ifdef __FreeBSD__ … … 607 600 gotos_suck: 608 601 strcpy(tmp, old_restpath); 609 // (NB: %s is where your filesystem is mounted now, by default)", MNT_RESTORING);610 if (popup_and_get_string611 ("Restore path", "Restore files to where?", tmp,612 MAX_STR_LEN / 4)) {602 // (NB: %s is where your filesystem is mounted now, by default)", MNT_RESTORING); 603 p = popup_and_get_string("Restore path", "Restore files to where?", tmp); 604 if (p != NULL) { 605 strcpy(tmp, p); 613 606 if (!strcmp(tmp, "/")) { 614 607 if (!ask_me_yes_or_no("Are you sure?")) { … … 625 618 free_filelist(filelist); 626 619 } 620 mr_free(p); 621 627 622 if (!ask_me_yes_or_no 628 623 ("Restore another subset of your backup?")) { … … 952 947 /** malloc **/ 953 948 char *old_restpath; 949 char *p = NULL; 954 950 955 951 struct mountlist_itself *mountlist = NULL; … … 997 993 save_filelist(filelist, "/tmp/selected-files.txt"); 998 994 strcpy(old_restpath, bkpinfo->restore_path); 999 if (popup_and_get_string("Restore path", 1000 "Restore files to where? )", 1001 bkpinfo->restore_path, MAX_STR_LEN / 4)) { 995 p = popup_and_get_string("Restore path", "Restore files to where? )", bkpinfo->restore_path); 996 if (p != NULL) { 997 strcpy(bkpinfo->restore_path, p); 998 mr_free(p); 999 1002 1000 log_it("Restoring everything"); 1003 1001 retval += restore_everything(filelist);
Note:
See TracChangeset
for help on using the changeset viewer.