Changeset 1652


Ignore:
Timestamp:
Sep 24, 2007, 1:07:01 PM (12 years ago)
Author:
bruno
Message:

Always wrokign on fixing tmpdir problems

Location:
branches/2.2.5/mondo/src
Files:
2 edited

Legend:

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

    r1645 r1652  
    930930{
    931931    int res = 0;
     932    char *tmp = NULL;
    932933
    933934    make_hole_for_dir(MNT_CDROM);
     
    935936    srandom((unsigned long) (time(NULL)));
    936937    insmod_crucial_modules();
    937     reset_bkpinfo();        // also sets defaults ('/'=backup path, 3=compression level)
    938938    if (bkpinfo->disaster_recovery) {
    939939        if (!does_nonMS_partition_exist()) {
     
    944944
    945945    unlink(MONDO_TRACEFILE);
    946     run_program_and_log_output("rm -Rf /tmp/changed.files*", FALSE);
     946    asprintf(&tmp,"rm -Rf %s/changed.files*",bkpinfo->tmpdir);
     947    run_program_and_log_output(tmp, FALSE);
     948    paranoid_free(tmp);
    947949    if (find_and_store_mondoarchives_home(g_mondo_home)) {
    948950        fprintf(stderr,
  • branches/2.2.5/mondo/src/mondoarchive/main.c

    r1645 r1652  
    284284/* Initialize variables */
    285285
    286     malloc_libmondo_global_strings();
    287     malloc_string(tmp);
    288     malloc_string(say_at_end);
     286    printf("Initializing...\n");
     287    if (!(bkpinfo = malloc(sizeof(struct s_bkpinfo)))) {
     288        fatal_error("Cannot malloc bkpinfo");
     289    }
     290    reset_bkpinfo();
    289291
    290292    res = 0;
    291293    retval = 0;
    292294    diffs = 0;
     295    malloc_string(tmp);
     296    malloc_string(say_at_end);
    293297    say_at_end[0] = '\0';
    294     printf("Initializing...\n");
    295     if (!(bkpinfo = malloc(sizeof(struct s_bkpinfo)))) {
    296         fatal_error("Cannot malloc bkpinfo");
    297     }
     298    malloc_libmondo_global_strings();
    298299
    299300    /* initialize log file with time stamp */
Note: See TracChangeset for help on using the changeset viewer.