Changeset 3828 in MondoRescue for branches/3.3/mondo/src/common


Ignore:
Timestamp:
Mar 4, 2024, 4:52:07 PM (18 months ago)
Author:
Bruno Cornec
Message:

manages restore_path dynamically

Location:
branches/3.3/mondo/src/common
Files:
4 edited

Legend:

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

    r3827 r3828  
    850850    bkpinfo->include_paths = NULL;
    851851    bkpinfo->exclude_devs = NULL;
    852     bkpinfo->restore_path[0] = '\0';
     852    bkpinfo->restore_path = NULL;
    853853    bkpinfo->call_before_iso = NULL;
    854854    bkpinfo->call_make_iso = NULL;
  • branches/3.3/mondo/src/common/libmondo-verify.c

    r3613 r3828  
    295295                paranoid_fclose(fin);
    296296            }
    297             if (bkpinfo->restore_path) {
     297            if (bkpinfo->restore_path != NULL) {
    298298                mr_asprintf(tmp, "%s/%s", bkpinfo->restore_path, biggiestruct.filename);
    299299                log_msg(2, "Opening biggiefile #%ld - '%s'", bigfile_num, tmp);
     
    869869        mr_free(comment);
    870870
    871         if (bkpinfo->restore_path) {
     871        if (bkpinfo->restore_path != NULL) {
    872872            mr_asprintf(logical_fname, "%s/%s", bkpinfo->restore_path, orig_fname);
    873873            res = verify_a_biggiefile_from_stream(logical_fname, size);
  • branches/3.3/mondo/src/common/mondostructures.h

    r3827 r3828  
    535535   * without overwriting the old ones. Ignored during a backup.
    536536   */
    537     char restore_path[MAX_STR_LEN];
     537    char *restore_path;
    538538
    539539  /**
  • branches/3.3/mondo/src/common/newt-specific.c

    r3827 r3828  
    435435        mr_free(bkpinfo->call_after_iso);
    436436        mr_free(bkpinfo->call_before_iso);
     437        mr_free(bkpinfo->restore_path);
    437438        /* Then free the structure */
    438439        paranoid_free(bkpinfo);
Note: See TracChangeset for help on using the changeset viewer.