Changeset 3185 in MondoRescue for branches/3.0/mondo/src/mondorestore


Ignore:
Timestamp:
Sep 20, 2013, 2:29:57 PM (11 years ago)
Author:
Bruno Cornec
Message:

Simplify the interface of mr_getline and mr_asprintf. With 3.1 compatibility now will allow backports from this branch into 3.0

Location:
branches/3.0/mondo/src/mondorestore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/mondorestore/mondo-prep.c

    r3071 r3185  
    335335            log_it("%s... so I'll get creative.", tmp);
    336336            if (lvmversion == 2) {
    337                 mr_asprintf(&tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE);
     337                mr_asprintf(tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE);
    338338                strcpy(tmp, call_program_and_get_last_line_of_output(tmp1));
    339339                free(tmp1);
    340340            } else {
    341                 mr_asprintf(&tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE);
     341                mr_asprintf(tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE);
    342342                strcpy(tmp, call_program_and_get_last_line_of_output(tmp1));
    343343                free(tmp1);
     
    586586    // create device list from normal disks followed by spare ones
    587587    if (raidlist->el[i].data_disks.el[0].device != NULL) {
    588         mr_asprintf(&devices, "%s", raidlist->el[i].data_disks.el[0].device);
     588        mr_asprintf(devices, "%s", raidlist->el[i].data_disks.el[0].device);
    589589        log_msg(4, "Adding device %s to list", raidlist->el[i].data_disks.el[0].device);
    590590    } else {
     
    602602    // translate RAID level
    603603    if (raidlist->el[i].raid_level == -2) {
    604       mr_asprintf(&level, "multipath");
     604      mr_asprintf(level, "multipath");
    605605    } else if (raidlist->el[i].raid_level == -1) {
    606       mr_asprintf(&level, "linear");
     606      mr_asprintf(level, "linear");
    607607    } else {
    608       mr_asprintf(&level, "raid%d", raidlist->el[i].raid_level);
     608      mr_asprintf(level, "raid%d", raidlist->el[i].raid_level);
    609609    }
    610610    // create RAID device:
     
    614614    // - persistent superblock always used as this is recommended
    615615
    616     mr_asprintf(&program, "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d", raidlist->el[i].raid_device, level, raidlist->el[i].data_disks.entries);
     616    mr_asprintf(program, "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d", raidlist->el[i].raid_device, level, raidlist->el[i].data_disks.entries);
    617617    mr_free(level);
    618618    log_msg(4, "cmd built: %s", program);
     
    718718
    719719    if (strstr(format, "raid")) {   // do not form RAID disks; do it to /dev/md* instead
    720         mr_asprintf(&tmp, "Not formatting %s (it is a RAID disk)", device);
     720        mr_asprintf(tmp, "Not formatting %s (it is a RAID disk)", device);
    721721        log_it(tmp);
    722722        paranoid_free(tmp);
     
    733733#endif
    734734    if (strlen(format) <= 2) {
    735         mr_asprintf(&tmp, "%s has a really small format type ('%s') - this is probably a hexadecimal string, which would suggest the partition is an image --- I shouldn't format it", device, format);
     735        mr_asprintf(tmp, "%s has a really small format type ('%s') - this is probably a hexadecimal string, which would suggest the partition is an image --- I shouldn't format it", device, format);
    736736        log_it(tmp);
    737737        paranoid_free(tmp);
     
    740740    }
    741741    if (is_this_device_mounted(device)) {
    742         mr_asprintf(&tmp, "%s is mounted - cannot format it      ", device);
     742        mr_asprintf(tmp, "%s is mounted - cannot format it       ", device);
    743743        log_to_screen(tmp);
    744744        paranoid_free(tmp);
     
    771771            char line[MAX_STR_LEN];
    772772
    773             mr_asprintf(&tmp, "Initializing Vinum device %s (this may take a *long* time)", device);
     773            mr_asprintf(tmp, "Initializing Vinum device %s (this may take a *long* time)", device);
    774774            log_to_screen(tmp);
    775775            paranoid_free(tmp);
     
    789789                    *(strchr(line, '\n')) = '\0';   // get rid of the \n on the end
    790790
    791                 mr_asprintf(&tmp, "Initializing plex: %s", line);
     791                mr_asprintf(tmp, "Initializing plex: %s", line);
    792792                open_evalcall_form(tmp);
    793793                paranoid_free(tmp);
    794794
    795                 mr_asprintf(&tmp, "vinum init %s", line);
     795                mr_asprintf(tmp, "vinum init %s", line);
    796796                paranoid_system(tmp);
    797797                paranoid_free(tmp);
    798798
    799799                while (1) {
    800                     mr_asprintf(&tmp, "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'", line);
     800                    mr_asprintf(tmp, "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'", line);
    801801                    FILE *pin = popen(tmp, "r");
    802802                    paranoid_free(tmp);
     
    820820        }
    821821#else
    822         mr_asprintf(&tmp, "Initializing RAID device %s", device);
     822        mr_asprintf(tmp, "Initializing RAID device %s", device);
    823823        log_to_screen(tmp);
    824824        paranoid_free(tmp);
     
    871871    }
    872872    res = which_format_command_do_i_need(format, program);
    873     mr_asprintf(&tmp, "%s %s", program, device);
     873    mr_asprintf(tmp, "%s %s", program, device);
    874874    if (strstr(program, "kludge")) {
    875875        mr_strcat(tmp, " /");
     
    878878    paranoid_free(tmp);
    879879
    880     mr_asprintf(&tmp, "Formatting %s as %s", device, format);
     880    mr_asprintf(tmp, "Formatting %s as %s", device, format);
    881881    update_progress_form(tmp);
    882882    paranoid_free(tmp);
     
    892892
    893893    if (res && strstr(program, "kludge")) {
    894         mr_asprintf(&tmp, "Kludge failed; using regular mkfs.%s to format %s",
     894        mr_asprintf(tmp, "Kludge failed; using regular mkfs.%s to format %s",
    895895                format, device);
    896896#ifdef __FreeBSD__
     
    17051705        paranoid_system(tmp);
    17061706        // mark relevant partition as bootable
    1707         mr_asprintf(&tmp1,"make-me-bootable /tmp/mountlist.txt %s",drivename);
     1707        mr_asprintf(tmp1,"make-me-bootable /tmp/mountlist.txt %s",drivename);
    17081708        call_program_and_get_last_line_of_output(tmp1);
    17091709        mr_free(tmp1);
     
    18171817    /* BERLIOS: should not be called each time */
    18181818    part_table_fmt = which_partition_format(drive);
    1819     mr_asprintf(&output, "");
     1819    mr_asprintf(output, "");
    18201820    /* make it a primary/extended/logical */
    18211821    if (partno <= 4) {
     
    21692169            fput_string_one_char_at_a_time(pout_to_fdisk, "p\n");
    21702170        } else {
    2171             mr_asprintf(&output, "t\n%d\n%s\nw\n", partno, partcode);
     2171            mr_asprintf(output, "t\n%d\n%s\nw\n", partno, partcode);
    21722172            sprintf(command, "parted2fdisk %s >> %s 2>> %s", drive,
    21732173                    MONDO_LOGFILE, MONDO_LOGFILE);
     
    25192519        return;
    25202520    }
    2521     mr_asprintf(&tmp, "Expanding entries to suit drive %s (%lld MB)", drive_name, current_size_of_drive / 1024);
     2521    mr_asprintf(tmp, "Expanding entries to suit drive %s (%lld MB)", drive_name, current_size_of_drive / 1024);
    25222522    log_to_screen(tmp);
    25232523    mr_free(tmp);
     
    25392539
    25402540    if (original_size_of_drive <= 0LL) {
    2541         mr_asprintf(&tmp, "Cannot resize %s's entries. Drive not found.", drive_name);
     2541        mr_asprintf(tmp, "Cannot resize %s's entries. Drive not found.", drive_name);
    25422542        log_to_screen(tmp);
    25432543        mr_free(tmp);
     
    25452545    }
    25462546    factor = ((float)current_size_of_drive/(float)original_size_of_drive);
    2547     mr_asprintf(&tmp, "Disk %s was %lld MB; is now %lld MB; Proportionally resizing partitions (factor ~= %.5f)",
     2547    mr_asprintf(tmp, "Disk %s was %lld MB; is now %lld MB; Proportionally resizing partitions (factor ~= %.5f)",
    25482548            drive_name, original_size_of_drive/1024, current_size_of_drive/1024, factor);
    25492549    log_to_screen(tmp);
     
    25722572        totalsizL += newsizL;
    25732573
    2574         mr_asprintf(&tmp, "Changing %s from %lld KB to %lld KB", drivemntlist->el[partno]->device, drivemntlist->el[partno]->size, newsizL);
     2574        mr_asprintf(tmp, "Changing %s from %lld KB to %lld KB", drivemntlist->el[partno]->device, drivemntlist->el[partno]->size, newsizL);
    25752575        log_to_screen(tmp);
    25762576        mr_free(tmp);
     
    25792579    // Ensures over-allocation alert and prompt for interactive mode does not happen
    25802580    if (totalsizL > current_size_of_drive) {
    2581         mr_asprintf(&tmp, "Last partition size calculated would be over-allocated, reducing %s from %lld KB to %lld KB.", drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size - (totalsizL - current_size_of_drive));
     2581        mr_asprintf(tmp, "Last partition size calculated would be over-allocated, reducing %s from %lld KB to %lld KB.", drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size - (totalsizL - current_size_of_drive));
    25822582        drivemntlist->el[drivemntlist->entries-1]->size -= (totalsizL - current_size_of_drive);
    25832583    } else if (totalsizL < current_size_of_drive) {
    2584         mr_asprintf(&tmp, "Last partition size calculated would be under-allocated, increasing %s from %lld KB to %lld KB.",drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size + (current_size_of_drive - totalsizL));
     2584        mr_asprintf(tmp, "Last partition size calculated would be under-allocated, increasing %s from %lld KB to %lld KB.",drivemntlist->el[lastpart]->device, drivemntlist->el[lastpart]->size, drivemntlist->el[lastpart]->size + (current_size_of_drive - totalsizL));
    25852585        drivemntlist->el[drivemntlist->entries-1]->size += (current_size_of_drive - totalsizL);
    25862586    }
    25872587    log_to_screen(tmp);
    25882588    mr_free(tmp);
    2589     mr_asprintf(&tmp, "final_size = %lld MB", current_size_of_drive / 1024);
     2589    mr_asprintf(tmp, "final_size = %lld MB", current_size_of_drive / 1024);
    25902590    log_to_screen(tmp);
    25912591    mr_free(tmp);
  • branches/3.0/mondo/src/mondorestore/mondo-rstr-compare.c

    r3060 r3185  
    8181            insist_on_this_cd_number((++g_current_media_number));
    8282        } else {
    83             mr_asprintf(&tmp_ptr, "No CD's left. No biggiefiles left. No prob, Bob.");
     83            mr_asprintf(tmp_ptr, "No CD's left. No biggiefiles left. No prob, Bob.");
    8484            log_msg(2, tmp_ptr);
    8585            paranoid_free(tmp_ptr);
     
    8888    }
    8989    if (!(fin = fopen(slice_fname(bigfileno, 0, ARCHIVES_PATH, ""), "r"))) {
    90         mr_asprintf(&tmp_ptr, "Cannot open bigfile %ld (%s)'s info file", bigfileno + 1, bigfile_fname_ptr);
     90        mr_asprintf(tmp_ptr, "Cannot open bigfile %ld (%s)'s info file", bigfileno + 1, bigfile_fname_ptr);
    9191        log_to_screen(tmp_ptr);
    9292        paranoid_free(tmp_ptr);
     
    105105
    106106    if (!g_text_mode) {
    107         mr_asprintf(&tmp_ptr, "Comparing %s", bigfile_fname_ptr);
     107        mr_asprintf(tmp_ptr, "Comparing %s", bigfile_fname_ptr);
    108108        newtDrawRootText(0, 22, tmp_ptr);
    109109        paranoid_free(tmp_ptr);
     
    121121    }
    122122    log_msg(2, command_ptr);
    123     mr_asprintf(&tmp_ptr, "cat /tmp/errors >> %s 2> /dev/null", MONDO_LOGFILE);
     123    mr_asprintf(tmp_ptr, "cat /tmp/errors >> %s 2> /dev/null", MONDO_LOGFILE);
    124124    paranoid_system(tmp_ptr);
    125125    paranoid_free(tmp_ptr);
     
    149149        }
    150150    }
    151     mr_asprintf(&tmp_ptr, "bigfile #%ld ('%s') ", bigfileno + 1, bigfile_fname_ptr);
     151    mr_asprintf(tmp_ptr, "bigfile #%ld ('%s') ", bigfileno + 1, bigfile_fname_ptr);
    152152    if (!strcmp(checksum_ptr, original_cksum_ptr) != 0) {
    153153        mr_strcat(tmp_ptr, " ... OK");
     
    280280
    281281    if (use_star) {
    282         mr_asprintf(&archiver_exe, "star");
    283     } else {
    284         mr_asprintf(&archiver_exe, "afio");
     282        mr_asprintf(archiver_exe, "star");
     283    } else {
     284        mr_asprintf(archiver_exe, "afio");
    285285    }
    286286
  • branches/3.0/mondo/src/mondorestore/mondo-rstr-newt.c

    r3158 r3185  
    19741974        /* flaws_str can be NULL */
    19751975        if ((flaws_str == NULL) || (strlen(flaws_str) == 0)) {
    1976             mr_asprintf(&flaws_str_A, "");
     1976            mr_asprintf(flaws_str_A, "");
    19771977        } else {
    1978             mr_asprintf(&flaws_str_A, "%s", flaws_str + 1);
     1978            mr_asprintf(flaws_str_A, "%s", flaws_str + 1);
    19791979        }
    19801980        if (strlen(flaws_str_A) >= 74) {
    19811981            for (i = 74; flaws_str_A[i] != ' '; i--);
    1982             mr_asprintf(&flaws_str_B, "%s", flaws_str_A + i + 1);
     1982            mr_asprintf(flaws_str_B, "%s", flaws_str_A + i + 1);
    19831983            flaws_str_A[i] = '\0';
    19841984        } else {
    1985             mr_asprintf(&flaws_str_B, "");
     1985            mr_asprintf(flaws_str_B, "");
    19861986        }
    19871987        if (strlen(flaws_str_B) >= 74) {
    19881988            for (i = 74; flaws_str_B[i] != ' '; i--);
    1989             mr_asprintf(&flaws_str_C, "%s", flaws_str_B + i + 1);
     1989            mr_asprintf(flaws_str_C, "%s", flaws_str_B + i + 1);
    19901990            flaws_str_B[i] = '\0';
    19911991        } else {
    1992             mr_asprintf(&flaws_str_C, "");
     1992            mr_asprintf(flaws_str_C, "");
    19931993        }
    19941994
  • branches/3.0/mondo/src/mondorestore/mondo-rstr-tools.c

    r3158 r3185  
    330330                if (HDD) {
    331331                    /*  We need an additional param */
    332                     mr_asprintf(&(bkpinfo->subdir), "%s", bkpinfo->isodir);
     332                    mr_asprintf(bkpinfo->subdir, "%s", bkpinfo->isodir);
    333333                    strcpy(bkpinfo->isodir, "/tmp/isodir");
    334334                    log_it("Now bkpinfo->isodir = %s and subdir = ", bkpinfo->isodir, bkpinfo->subdir);
     
    383383    log_to_screen("WARNING - isodir is already mounted");
    384384} else {
    385     mr_asprintf(&mount_isodir_command, "mount %s", g_isodir_device);
     385    mr_asprintf(mount_isodir_command, "mount %s", g_isodir_device);
    386386    if (strlen(g_isodir_format) > 1) {
    387387        mr_strcat(mount_isodir_command, " -t %s", g_isodir_format);
     
    478478    log_msg(1, tmp);
    479479    /* Deal with additional params only if not /proc or /sys */
    480     mr_asprintf(&additional_parameters, "");
     480    mr_asprintf(additional_parameters, "");
    481481    if (strcmp(format, "proc") && strcmp(format, "sys")) {
    482482        if (writeable) {
     
    586586               "", mountlist->entries);
    587587
    588     mr_asprintf(&these_failed, "");
     588    mr_asprintf(these_failed, "");
    589589    for (lino = 0; lino < mountlist->entries; lino++) {
    590590        if (!strcmp(mountlist->el[lino].device, "/proc")) {
     
    766766    bkpinfo->please_dont_eject = TRUE;
    767767    if (read_cfg_var(cfg_file, "netfs-proto", value) == 0) {
    768         mr_asprintf(&(bkpinfo->netfs_proto),"%s", value);
     768        mr_asprintf(bkpinfo->netfs_proto,"%s", value);
    769769    } else {
    770770        /* For compatibility, force protocol in old nfs case to be transparent */
    771         mr_asprintf(&(bkpinfo->netfs_proto), "nfs");
     771        mr_asprintf(bkpinfo->netfs_proto, "nfs");
    772772    }
    773773    if (read_cfg_var(cfg_file, "netfs-server-user", value) == 0) {
    774         mr_asprintf(&(bkpinfo->netfs_user),"%s", value);
     774        mr_asprintf(bkpinfo->netfs_user,"%s", value);
    775775    }
    776776    if (read_cfg_var(cfg_file, "iso-prefix", value) == 0) {
     
    851851read_cfg_var(cfg_file, "acl", value);
    852852if (strstr(value, "TRUE")) {
    853     mr_asprintf(&g_getfacl,"setfacl");
     853    mr_asprintf(g_getfacl,"setfacl");
    854854    log_msg(1, "We will restore ACLs");
    855855    if (! find_home_of_exe("setfacl")) {
     
    859859read_cfg_var(cfg_file, "xattr", value);
    860860if (strstr(value, "TRUE")) {
    861     mr_asprintf(&g_getfattr,"setfattr");
     861    mr_asprintf(g_getfattr,"setfattr");
    862862    log_msg(1, "We will restore XATTRs");
    863863    if (! find_home_of_exe("setfattr")) {
     
    13701370     * the current /dev location
    13711371     */
    1372     mr_asprintf(&cmd,"tar cf - /dev | ( cd %s ; tar xf - )",MNT_RESTORING);
     1372    mr_asprintf(cmd,"tar cf - /dev | ( cd %s ; tar xf - )",MNT_RESTORING);
    13731373    run_program_and_log_output(cmd, 3);
    13741374    paranoid_free(cmd);
     
    13851385    read_cfg_var(g_mondo_cfg_file, "bootloader.device", device);
    13861386    read_cfg_var(g_mondo_cfg_file, "bootloader.name", name);
    1387     mr_asprintf(&tmp, "run_boot_loader: device='%s', name='%s'", device, name);
     1387    mr_asprintf(tmp, "run_boot_loader: device='%s', name='%s'", device, name);
    13881388    log_msg(2, tmp);
    13891389    paranoid_free(tmp);
     
    14021402#ifdef __FreeBSD__
    14031403    else if (!strcmp(name, "BOOT0")) {
    1404         mr_asprintf(&tmp, "boot0cfg -B %s", device);
     1404        mr_asprintf(tmp, "boot0cfg -B %s", device);
    14051405        res = run_program_and_log_output(tmp, FALSE);
    14061406        paranoid_free(tmp);
    14071407    } else {
    1408         mr_asprintf(&tmp, "ls /dev | grep -Eq '^%ss[1-4].*'", device);
     1408        mr_asprintf(tmp, "ls /dev | grep -Eq '^%ss[1-4].*'", device);
    14091409        if (!system(tmp)) {
    14101410            paranoid_free(tmp);
    1411             mr_asprintf(&tmp, MNT_RESTORING "/sbin/fdisk -B %s", device);
     1411            mr_asprintf(tmp, MNT_RESTORING "/sbin/fdisk -B %s", device);
    14121412            res = run_program_and_log_output(tmp, 3);
    14131413        } else {
     
    20562056    paranoid_system("sync");
    20572057
    2058     mr_asprintf(&tmp, "cp -f %s " MNT_RESTORING "/var/log", MONDO_LOGFILE);
     2058    mr_asprintf(tmp, "cp -f %s " MNT_RESTORING "/var/log", MONDO_LOGFILE);
    20592059    if (run_program_and_log_output(tmp, FALSE)) {
    20602060        log_msg(1,
     
    20752075            continue;
    20762076        }
    2077         mr_asprintf(&tmp, "Unmounting device %s  ", mountlist->el[lino].device);
     2077        mr_asprintf(tmp, "Unmounting device %s  ", mountlist->el[lino].device);
    20782078
    20792079        update_progress_form(tmp);
  • branches/3.0/mondo/src/mondorestore/mondorestore.c

    r3158 r3185  
    354354
    355355    /* Clean up blkid cache file if they exist */
    356     mr_asprintf(&tmp1,"%s/etc/blkid.tab",bkpinfo->restore_path);
     356    mr_asprintf(tmp1,"%s/etc/blkid.tab",bkpinfo->restore_path);
    357357    (void)unlink(tmp1);
    358358    paranoid_free(tmp1);
    359     mr_asprintf(&tmp1,"%s/etc/blkid.tab.old",bkpinfo->restore_path);
     359    mr_asprintf(tmp1,"%s/etc/blkid.tab.old",bkpinfo->restore_path);
    360360    (void)unlink(tmp1);
    361361    paranoid_free(tmp1);
     
    369369
    370370    /* Clean up multiconf cache file if they exist */
    371     mr_asprintf(&tmp1,"%s/var/lib/multipath/bindings",bkpinfo->restore_path);
     371    mr_asprintf(tmp1,"%s/var/lib/multipath/bindings",bkpinfo->restore_path);
    372372    (void)unlink(tmp1);
    373373    paranoid_free(tmp1);
    374374
    375375    /* Edit multipath.conf if needed to adapt wwid */
    376     mr_asprintf(&tmp1,"%s/etc/multipath.conf", MNT_RESTORING);
     376    mr_asprintf(tmp1,"%s/etc/multipath.conf", MNT_RESTORING);
    377377    if (does_file_exist(tmp1)) {
    378378        log_msg(2, "We may need to clean /etc/multipath.conf");
     
    384384
    385385    if (bkpinfo->restore_mode != nuke) {
    386         mr_asprintf(&editor, "%s", find_my_editor());
    387         mr_asprintf(&tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor);
     386        mr_asprintf(editor, "%s", find_my_editor());
     387        mr_asprintf(tmp1,"chroot %s %s /etc/multipath.conf", MNT_RESTORING, editor);
    388388        popup_and_OK("You will now edit multipath.conf");
    389389        if (!g_text_mode) {
     
    16701670    use_star = (strstr(tarball_fname, ".star")) ? TRUE : FALSE;
    16711671//  sprintf(files_to_restore_this_time_fname, "/tmp/ftrttf.%d.%d", (int)getpid(), (int)random());
    1672     mr_asprintf(&command, "mkdir -p %s/tmp", MNT_RESTORING);
     1672    mr_asprintf(command, "mkdir -p %s/tmp", MNT_RESTORING);
    16731673    run_program_and_log_output(command, 9);
    16741674    paranoid_free(command);
     
    17571757//      if (strstr(tarball_fname, ".star."))
    17581758        if (use_star) {
    1759             mr_asprintf(&command, "star -x -force-remove -sparse -U " STAR_ACL_SZ " file=%s", tarball_fname);
     1759            mr_asprintf(command, "star -x -force-remove -sparse -U " STAR_ACL_SZ " file=%s", tarball_fname);
    17601760            if (strstr(tarball_fname, ".bz2")) {
    17611761                mr_strcat(command, " -bz");
     
    17631763        } else {
    17641764            if (filelist_subset_fname[0] != '\0') {
    1765                 mr_asprintf(&command, "afio -i -M 8m -b %ld -c %ld %s -w '%s' %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, filelist_subset_fname, tarball_fname);
     1765                mr_asprintf(command, "afio -i -M 8m -b %ld -c %ld %s -w '%s' %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, filelist_subset_fname, tarball_fname);
    17661766            } else {
    1767                 mr_asprintf(&command, "afio -i -b %ld -c %ld -M 8m %s %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, tarball_fname);
     1767                mr_asprintf(command, "afio -i -b %ld -c %ld -M 8m %s %s", TAPE_BLOCK_SIZE, BUFSIZE, executable, tarball_fname);
    17681768            }
    17691769        }
     
    18181818        // Be verbose for star
    18191819        if (retval || use_star) {
    1820             mr_asprintf(&command, "cat %s >> %s", temp_log, MONDO_LOGFILE);
     1820            mr_asprintf(command, "cat %s >> %s", temp_log, MONDO_LOGFILE);
    18211821            paranoid_system(command);
    18221822            paranoid_free(command);
     
    23102310                                              filelist);
    23112311            }
    2312             mr_asprintf(&tmp1, "%s #%d, fileset #%ld - restore ",
     2312            mr_asprintf(tmp1, "%s #%d, fileset #%ld - restore ",
    23132313                    mds, g_current_media_number, current_tarball_number);
    23142314            if (res) {
Note: See TracChangeset for help on using the changeset viewer.