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/newt-specific.c

    r2901 r2907  
    405405        /* newtPopHelpLine(); */
    406406
    407         chdir("/");
     407        /*  Before removing dir, make sure we're out of them */ */
     408        chdir("/tmp");
    408409        run_program_and_log_output("umount -d " MNT_CDROM, FALSE);
    409410        if (g_selfmounted_isodir) {
     
    429430            log_msg(8,"tempdir is %s",bkpinfo->tmpdir);
    430431            if (strstr(bkpinfo->tmpdir ,"mondo.tmp.") != NULL) {
    431                 log_msg(8,"erasing tempdir");
     432                log_msg(8,"erasing tempdir %s",bkpinfo->tmpdir);
    432433                mr_asprintf(&command, "rm -Rf %s", bkpinfo->tmpdir);
    433434                system(command);
     
    438439            log_msg(8,"scratchdir is %s", bkpinfo->scratchdir);
    439440            if (strstr(bkpinfo->scratchdir ,"mondo.scratch.") != NULL) {
    440                 log_msg(8,"erasing scratchdir");
     441                log_msg(8,"erasing scratchdir %s",bkpinfo->scratchdir);
    441442                mr_asprintf(&command, "rm -Rf %s", bkpinfo->scratchdir);
    442443                system(command);
Note: See TracChangeset for help on using the changeset viewer.