Changeset 3147 in MondoRescue for branches/3.1/mondo/src/common/newt-specific.c
- Timestamp:
- Jun 19, 2013, 8:34:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/common/newt-specific.c
r2937 r3147 57 57 */ 58 58 bool g_exiting = FALSE; 59 60 // Decide whether we should continue to ask questions or exit (cron use case) 61 extern bool g_fail_immediately; 59 62 60 63 /** … … 122 125 char *tmp; 123 126 124 assert_string_is_neither_NULL_nor_zerolength(prompt); 125 127 assert_string_is_neither_NULL_nor_zerolength(prompt); 128 129 if (g_fail_immediately) { 130 // We consider the user aborted by using the -F option 131 log_msg(3, "Exiting at first interaction request due to -F"); 132 finish(1); 133 } 126 134 if (g_text_mode) { 127 135 while (1) { … … 163 171 /*@ buffer *********************************************************** */ 164 172 char *tmp = NULL; 173 char *p; 165 174 int i; 166 175 167 assert_string_is_neither_NULL_nor_zerolength(prompt); 176 if (g_fail_immediately) { 177 // We consider the user aborted by using the -F option 178 log_msg(3, "Exiting at first interaction request due to -F"); 179 finish(1); 180 } 168 181 169 182 if (g_text_mode) { … … 318 331 sync(); 319 332 320 chdir("/"); 333 if (chdir("/")) { 334 // FIXME 335 } 321 336 if (g_selfmounted_isodir) { 322 337 mr_asprintf(command, "umount -d %s", g_selfmounted_isodir); … … 369 384 370 385 /* Before removing dir, make sure we're out of them */ 371 chdir("/tmp"); 386 if (chdir("/tmp")) { 387 // FIXME 388 } 372 389 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 373 390 if (g_selfmounted_isodir) { … … 385 402 log_msg(8,"erasing tempdir %s",bkpinfo->tmpdir); 386 403 mr_asprintf(command, "rm -Rf %s", bkpinfo->tmpdir); 387 system(command);404 paranoid_system(command); 388 405 mr_free(command); 389 406 } … … 394 411 log_msg(8,"erasing scratchdir %s",bkpinfo->scratchdir); 395 412 mr_asprintf(command, "rm -Rf %s", bkpinfo->scratchdir); 396 system(command);413 paranoid_system(command); 397 414 mr_free(command); 398 415 } … … 424 441 char *command = NULL; 425 442 char *tmp = NULL; 443 char *p = NULL; 426 444 427 445 /*@ pointers ********************************************************* */ … … 763 781 /*@ buffers *********************************************************** */ 764 782 char *prompt = NULL; 783 char *q; 765 784 766 785 /*@ newt ************************************************************** */ … … 1130 1149 static char *possible_responses[] = { "none", "cdr", "cdrw", "dvd", "tape", "cdstream", "udev", "netfs", "iso", NULL }; 1131 1150 char *outstr = NULL; 1151 char *p; 1132 1152 t_bkptype backup_type; 1133 1153 int i; … … 1286 1306 newtPushHelpLine(" Please specify the level of compression that you want."); 1287 1307 newtCenteredWindow(34, 13, "How much compression?"); 1288 b1 = newtButton(4, 1, "Maximum ");1289 b2 = newtButton(18, 1, "Average ");1290 b3 = newtButton(4, 5, "Minimum ");1291 b4 = newtButton(18, 5, " None ");1308 b1 = newtButton(4, 1, "Maximum (9)"); 1309 b2 = newtButton(18, 1, "Average (4)"); 1310 b3 = newtButton(4, 5, "Minimum (1)"); 1311 b4 = newtButton(18, 5, " None (0) "); 1292 1312 b5 = newtButton(4, 9, " Exit "); 1293 1313 myForm = newtForm(NULL, NULL, 0); … … 1327 1347 bool done; 1328 1348 char *tmp = NULL; 1349 char *p; 1329 1350 char *tmp1 = NULL; 1330 1351 FILE *fin, *fout; … … 1563 1584 } /* extern "C" */ 1564 1585 #endif 1565 1566 1567 void wait_until_software_raids_are_prepped(char *mdstat_file, int wait_for_percentage);
Note:
See TracChangeset
for help on using the changeset viewer.