Ignore:
Timestamp:
Aug 18, 2009, 2:37:39 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3331@localhost: bruno | 2009-08-06 01:34:32 +0200

  • bkpinfo->scratchdir is now dynamically allocated
  • mondoarchive tests made in text+newt env. Seems OK. Valgrind errors to be fixed
File:
1 edited

Legend:

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

    r2319 r2320  
    448448        mr_free(tmp);
    449449    }
    450     make_hole_for_dir(bkpinfo->scratchdir);
     450    if (bkpinfo->scratchdir) {
     451        make_hole_for_dir(bkpinfo->scratchdir);
     452        chmod(bkpinfo->scratchdir, 0700);
     453    } else {
     454        fatal_error("Scratchdir set to NULL !");
     455    }
    451456    if (bkpinfo->backup_media_type == iso)
    452457        make_hole_for_dir(bkpinfo->isodir);
     
    680685        fprintf(stderr, "Type 'man mondoarchive' for help.\n");
    681686    }
    682     if (strlen(bkpinfo->tmpdir) < 2 || strlen(bkpinfo->scratchdir) < 2) {
    683         log_it("tmpdir or scratchdir are blank/missing");
     687    if (strlen(bkpinfo->tmpdir) < 2) {
     688        log_it("tmpdir is blank/missing");
    684689        retval++;
    685690    }
     
    688693        bkpinfo->include_paths = p;
    689694    }
    690     chmod(bkpinfo->scratchdir, 0700);
    691695    g_backup_media_type = bkpinfo->backup_media_type;
    692696    paranoid_free(mtpt);
Note: See TracChangeset for help on using the changeset viewer.