Ignore:
Timestamp:
Sep 29, 2013, 7:27:11 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix all compilation/link error due to the previous giant merge with 3.1. 3.2 is ready to test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/mondorestore/mondorestore.c

    r3193 r3194  
    431431  /** needs malloc **********/
    432432    char *tmp;
    433     char *p = NULL;
    434433    char *tmp1 = NULL;
    435434    char *fstab_fname = NULL;
     
    460459    log_it("Done loading config file; resizing ML");
    461460
    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));
    463462    if (strstr(tmp1, "noresize")) {
    464463        log_msg(1, "Not resizing mountlist.");
     
    578577                strcpy(tmp, old_restpath);
    579578                // (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)) {
    583580                    if (!strcmp(tmp, "/")) {
    584581                        if (!ask_me_yes_or_no("Are you sure?")) {
     
    788785            twenty_seconds_til_yikes();
    789786            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));
    791788            if (strstr(tmp1, "nopart")) {
    792789                log_msg(2, "Not partitioning drives due to 'nopart' option.");
     
    860857
    861858  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));
    863860    if (retval) {
    864861        log_to_screen("Errors occurred during the nuke phase.");
     
    912909    strcpy(bkpinfo->restore_path, "/");
    913910    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.");
    916912        sleep(1);
    917913    }
     
    940936        save_filelist(filelist, "/tmp/selected-files.txt");
    941937        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)) {
    945939            log_it("Restoring everything");
    946940            retval += restore_everything(filelist);
     
    958952    }
    959953    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.");
    962955    } else {
    963956        run_program_and_log_output("umount -d " MNT_CDROM, FALSE);
     
    987980 * @{
    988981 */
     982
    989983/**
    990984 * Restore biggiefile @p bigfileno from the currently mounted CD.
     
    998992 * @return 0 for success (or skip), nonzero for failure.
    999993 */
    1000 int
    1001 restore_a_biggiefile_from_CD(long bigfileno,
     994int restore_a_biggiefile_from_CD(long bigfileno,
    1002995                             struct s_node *filelist,
    1003996                             char *pathname_of_last_file_restored)
     
    22042197  /** malloc add ****/
    22052198    char *tmp = NULL;
     2199    char *tmp1 = NULL;
    22062200    char *biggie_fname;
    22072201    char *biggie_cksum;
Note: See TracChangeset for help on using the changeset viewer.