Changeset 1703 in MondoRescue for branches/2.2.5/mondo/src/mondoarchive/main.c
- Timestamp:
- Oct 24, 2007, 1:59:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondoarchive/main.c
r1697 r1703 529 529 run_program_and_log_output(tmp, TRUE); 530 530 } 531 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, TRUE);532 531 533 532 run_program_and_log_output("mount", 2); … … 542 541 register_pid(0, "mondo"); 543 542 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 550 544 free_libmondo_global_strings(); 551 545 paranoid_free(say_at_end); 552 paranoid_free(bkpinfo);546 553 547 554 548 if (!g_cdrom_drive_is_here) { … … 562 556 log_msg(0, "Time finished: %s", mr_date()); 563 557 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 567 559 568 560 if (!g_text_mode) { … … 570 562 ("Mondo Archive has finished its run. Please press ENTER to return to the shell prompt."); 571 563 log_to_screen("See %s for details of backup run.", MONDO_LOGFILE); 572 finish(retval);573 564 } else { 574 565 printf("See %s for details of backup run.\n", MONDO_LOGFILE); 575 exit(retval);576 }566 } 567 finish(retval); 577 568 578 569 return EXIT_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.