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/mondo-rstr-tools.c

    r3193 r3194  
    639639/** add mallocs **/
    640640char value[MAX_STR_LEN];
    641 char *tmp = NULL;
    642641char *tmp1 = NULL;
    643642char *envtmp1 = NULL;
     
    936935            log_it("command = %s", command);
    937936            log_it("res of it = %s", call_program_and_get_last_line_of_output(command));
    938             mr_strcpy(iso_mnt, call_program_and_get_last_line_of_output(command));
     937            sprintf(iso_mnt, "%s", call_program_and_get_last_line_of_output(command));
    939938            mr_free(command);
    940939        } else {
    941             mr_asprintf(iso_mnt, "/tmp/isodir");
     940            sprintf(iso_mnt, "/tmp/isodir");
    942941            mr_asprintf(tmp1, "mkdir -p %s", iso_mnt);
    943942            run_program_and_log_output(tmp1, 5);
     
    979978}
    980979g_backup_media_type = bkpinfo->backup_media_type;
    981 paranoid_free(value);
    982 paranoid_free(iso_mnt);
    983 paranoid_free(iso_path);
    984980return (0);
    985981
     
    20532049            /* Doing that allow us to remain compatible with pre-2.2.5 versions */
    20542050            log_msg(2, "pre-2.2.4 compatible mode on");
    2055             mr_sprintf(command, "dd if=%s bs=%ld count=%ld 2> /dev/null | tar -zx %s %s %s %s %s", dev, bkpinfo->internal_tape_block_size, 1024L * 1024 * 32 / bkpinfo->internal_tape_block_size, MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, IWANTMYLVM_STUB);
     2051            mr_asprintf(command,    "dd if=%s bs=%ld count=%ld 2> /dev/null | tar -zx %s %s %s %s %s", dev, bkpinfo->internal_tape_block_size, 1024L * 1024 * 32 / bkpinfo->internal_tape_block_size, MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, IWANTMYLVM_STUB);
    20562052            log_msg(2, "command = '%s'", command);
    20572053            res = run_program_and_log_output(command, -1);
     
    21032099    unlink(FILELIST_FULL_STUB);
    21042100    unlink(BIGGIELIST_TXT_STUB);
    2105     mr _asprintf(command, "mkdir -p %s", mountpt);
     2101    mr_asprintf(command, "mkdir -p %s", mountpt);
    21062102    run_program_and_log_output(command, FALSE);
    21072103    mr_free(command);
Note: See TracChangeset for help on using the changeset viewer.