Ignore:
Timestamp:
Dec 6, 2013, 3:40:47 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix mondoarchive which now works in text mode. GUI mode still not working and crashing on first update for backup. Needs more

investigation in newt-specific.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3195 r3205  
    366366    assert(bkpinfo != NULL);
    367367
    368     bkpinfo->optimal_set_size =
    369         (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) *
    370         1024;
     368    bkpinfo->optimal_set_size = (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 1024;
    371369
    372370    log_msg(1, "Post-param");
     
    383381        if (run_program_and_log_output(tmp, 3)) {
    384382            mr_free(tmp);
    385             fatal_error
    386                 ("Unable to open tape device. If you haven't specified it with -d, do so. If you already have, check your parameter. I think it's wrong.");
     383            fatal_error("Unable to open tape device. If you haven't specified it with -d, do so. If you already have, check your parameter. I think it's wrong.");
    387384        }
    388385        mr_free(tmp);
     
    451448            // -m isn't supported by growisofs, BTW...
    452449        } else {
    453             sprintf(bkpinfo->call_make_iso,
    454                     "%s %s -Z %s . 2>> _ERR_",
    455                     mondo_mkisofs_sz,
    456                     "", bkpinfo->media_device);
     450            sprintf(bkpinfo->call_make_iso, "%s %s -Z %s . 2>> _ERR_", mondo_mkisofs_sz, "", bkpinfo->media_device);
    457451        }
    458452        mr_free(mondo_mkisofs_sz);
     
    519513        if (bkpinfo->manual_cd_tray) {
    520514            if (bkpinfo->call_before_iso[0] == '\0') {
    521             sprintf(bkpinfo->call_before_iso,
    522                         "%s -o %s/"MONDO_TMPISOS" . 2>> _ERR_",
    523                         mondo_mkisofs_sz, bkpinfo->tmpdir);
    524                 } else {
     515                sprintf(bkpinfo->call_before_iso, "%s -o %s/"MONDO_TMPISOS" . 2>> _ERR_", mondo_mkisofs_sz, bkpinfo->tmpdir);
     516            } else {
    525517                mr_asprintf(call_before_iso_user, "%s", bkpinfo->call_before_iso);
    526518                sprintf(bkpinfo->call_before_iso, "( %s -o %s/"MONDO_TMPISOS" . 2>> _ERR_ ; %s )", mondo_mkisofs_sz, bkpinfo->tmpdir, call_before_iso_user);
     
    10581050        return (0);
    10591051    } else {
    1060         mr_asprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5",
    1061                 label, config_file);
     1052        mr_asprintf(command, "grep '%s .*' %s| cut -d' ' -f2,3,4,5", label, config_file);
    10621053        strcpy(value, call_program_and_get_last_line_of_output(command));
    10631054        mr_free(command);
Note: See TracChangeset for help on using the changeset viewer.