Changeset 75 in MondoRescue for trunk/mondo/mondo/common/newt-specific.c
- Timestamp:
- Oct 20, 2005, 2:35:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/newt-specific.c
r59 r75 95 95 bool g_called_by_xmondo = FALSE; ///< @bug Unneeded w/current XMondo. 96 96 char *g_erase_tmpdir_and_scratchdir; ///< The command to run to erase the tmpdir and scratchdir at the end of Mondo. 97 char *g_selfmounted_isodir; ///< Holds the NFS mountpoint if mounted via mondoarchive. 97 98 98 99 /* @} - end of globalGroup */ … … 257 258 "-------FATAL ERROR---------"; 258 259 char *tmp; 260 char *command; 259 261 static bool already_exiting = FALSE; 260 262 int i; … … 262 264 /*@ end vars **************************************************** */ 263 265 266 malloc_string(command); 264 267 set_signals(FALSE); // link to external func 265 268 g_exiting = TRUE; … … 304 307 if (g_erase_tmpdir_and_scratchdir[0]) { 305 308 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 5); 309 } 310 311 if (g_selfmounted_isodir) { 312 asprintf(&command, "umount %s", g_selfmounted_isodir); 313 run_program_and_log_output(command, 5); 314 asprintf(&command, "rmdir %s", g_selfmounted_isodir); 315 run_program_and_log_output(command, 5); 306 316 } 307 317 … … 359 369 void 360 370 finish(int signal) { 361 362 /* if (signal==0) { popup_and_OK("Please press <enter> to quit."); } */ 371 char *command; 372 malloc_string(command); 373 374 /* if (signal==0) { popup_and_OK("Please press <enter> to quit."); } */ 363 375 364 376 /* newtPopHelpLine(); */ … … 371 383 if (g_erase_tmpdir_and_scratchdir) { 372 384 run_program_and_log_output(g_erase_tmpdir_and_scratchdir, 1); 385 } 386 if (g_selfmounted_isodir) { 387 asprintf(&command, "umount %s", g_selfmounted_isodir); 388 run_program_and_log_output(command, 1); 389 asprintf(&command, "rmdir %s", g_selfmounted_isodir); 390 run_program_and_log_output(command, 1); 373 391 } 374 392 // iamhere("foo");
Note:
See TracChangeset
for help on using the changeset viewer.