Ignore:
Timestamp:
Nov 29, 2011, 2:58:39 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Should fix #512 by clearing old scratchdir before changing to a new
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-devices.c

    r2878 r2907  
    29732973    log_it("bkpinfo->tmpdir is being set to %s", bkpinfo->tmpdir);
    29742974
     2975    /* Before changing remove old ones if any */
     2976    if (bkpinfo->scratchdir) {
     2977        chdir("/tmp");
     2978        mr_asprintf(&tmp, "rm -Rf %s", bkpinfo->scratchdir);
     2979        paranoid_system(tmp);
     2980        mr_free(tmp);
     2981    }
    29752982    sprintf(bkpinfo->scratchdir, "%s/mondo.scratch.%d", tmp,
    29762983            (int) (random() % 32768));
Note: See TracChangeset for help on using the changeset viewer.