Changeset 1770 in MondoRescue for branches/stable/mondo/src/common/newt-specific.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/newt-specific.c
r1670 r1770 105 105 g_xmondo_stdout[MAX_NEWT_COMMENT_LEN]; ///< .... @bug Unneeded w/current XMondo. 106 106 bool g_called_by_xmondo = FALSE; ///< @bug Unneeded w/current XMondo. 107 char *g_erase_tmpdir_and_scratchdir = NULL; ///< The command to run to erase the tmpdir and scratchdir at the end of Mondo.108 107 char *g_selfmounted_isodir = NULL; ///< Holds the NFS mountpoint if mounted via mondoarchive. 109 108 … … 326 325 } 327 326 328 if (g_erase_tmpdir_and_scratchdir[0]) {329 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 5);330 }331 332 327 if (g_selfmounted_isodir) { 333 328 mr_asprintf(&command, "umount %s", g_selfmounted_isodir); … … 373 368 run_program_and_log_output("rm -Rf /mondo.scratch.* /tmp.mondo.*", 374 369 FALSE); 375 if (g_erase_tmpdir_and_scratchdir) {376 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 1);377 }378 370 if (g_selfmounted_isodir) { 379 371 mr_asprintf(&command, "umount %s", g_selfmounted_isodir); … … 396 388 printf("Execution run ended; result=%d\n", signal_code); 397 389 printf("Type 'less %s' to see the output log\n", MONDO_LOGFILE); 390 mr_asprintf(&command, "rm -Rf %s %s", bkpinfo->tmpdir, bkpinfo->scratchdir); 391 system(command); 392 paranoid_free(command); 393 paranoid_free(bkpinfo); 398 394 free_libmondo_global_strings(); 399 395 mr_exit(signal_code, "Execution run ended"); … … 1190 1186 b2 = newtButton(17, 1, _("CD-RW disks")); 1191 1187 b3 = newtButton(1, 9, _("Tape drive ")); 1192 b4 = newtButton(17, 5, _(" CD streamer"));1188 b4 = newtButton(17, 5, _("USB Key/Disk")); 1193 1189 b5 = newtButton(1, 5, _(" DVD disks ")); 1194 1190 b6 = newtButton(17, 9, _(" NFS mount "));
Note:
See TracChangeset
for help on using the changeset viewer.