Changeset 1703 in MondoRescue for branches/2.2.5/mondo/src/mondoarchive/main.c


Ignore:
Timestamp:
Oct 24, 2007, 1:59:37 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Add USB Key button to Menu UI (CD streamer removed)
  • Attempt to fix error messages on tmp/scratch files at the end by removing those dir at the latest possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondoarchive/main.c

    r1697 r1703  
    529529        run_program_and_log_output(tmp, TRUE);
    530530    }
    531     run_program_and_log_output(g_erase_tmpdir_and_scratchdir, TRUE);
    532531
    533532    run_program_and_log_output("mount", 2);
     
    542541    register_pid(0, "mondo");
    543542    set_signals(FALSE);
    544     chdir("/tmp");              // just in case there's something wrong with g_erase_tmpdir_and_scratchdir
    545     system(g_erase_tmpdir_and_scratchdir);
    546 
    547     /* assemble command string for deletion of Mondo's tmp directory */
    548     sprintf(tmp, "rm -Rf %s", bkpinfo->tmpdir);
    549    
     543
    550544    free_libmondo_global_strings();
    551545    paranoid_free(say_at_end);
    552     paranoid_free(bkpinfo);
     546   
    553547
    554548    if (!g_cdrom_drive_is_here) {
     
    562556    log_msg(0, "Time finished: %s", mr_date());
    563557
    564     /* remove Mondo's tmp directory */
    565     system(tmp);
    566     paranoid_free(tmp);
     558    chdir("/tmp");              // just in case there's something wrong with g_erase_tmpdir_and_scratchdir
    567559
    568560    if (!g_text_mode) {
     
    570562            ("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt.");
    571563        log_to_screen("See %s for details of backup run.", MONDO_LOGFILE);
    572         finish(retval);
    573564    } else {
    574565        printf("See %s for details of backup run.\n", MONDO_LOGFILE);
    575         exit(retval);
    576     }
     566    }
     567    finish(retval);
    577568
    578569    return EXIT_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.