Changeset 3185 in MondoRescue for branches/3.0/mondo/src/mondoarchive/mondoarchive.c
- Timestamp:
- Sep 20, 2013, 2:29:57 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/mondoarchive/mondoarchive.c
r3141 r3185 206 206 207 207 /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */ 208 mr_asprintf( &tmp1,"%s:/sbin:/usr/sbin:/usr/local/sbin",getenv("PATH"));208 mr_asprintf(tmp1,"%s:/sbin:/usr/sbin:/usr/local/sbin",getenv("PATH")); 209 209 setenv("PATH", tmp1, 1); 210 210 paranoid_free(tmp1); 211 211 212 212 /* Add the ARCH environment variable for ia64 purposes */ 213 mr_asprintf( &tmp1,"%s",get_architecture());213 mr_asprintf(tmp1,"%s",get_architecture()); 214 214 setenv("ARCH", tmp1, 1); 215 215 paranoid_free(tmp1); … … 382 382 retval += res; 383 383 if (res) { 384 mr_asprintf( &say_at_end, "Data archived. Please check the logs, just as a precaution. ");385 } else { 386 mr_asprintf( &say_at_end, "Data archived OK. ");384 mr_asprintf(say_at_end, "Data archived. Please check the logs, just as a precaution. "); 385 } else { 386 mr_asprintf(say_at_end, "Data archived OK. "); 387 387 } 388 388 } … … 392 392 res = verify_data(); 393 393 if (res < 0) { 394 mr_asprintf( &tmp, "%d difference%c found.", -res,394 mr_asprintf(tmp, "%d difference%c found.", -res, 395 395 (-res != 1) ? 's' : ' '); 396 mr_asprintf( &say_at_end, "%s", tmp);396 mr_asprintf(say_at_end, "%s", tmp); 397 397 log_to_screen(tmp); 398 398 mr_free(tmp); … … 432 432 paranoid_free(say_at_end); 433 433 } 434 mr_asprintf( &tmp, "umount %s/tmpfs", bkpinfo->tmpdir);434 mr_asprintf(tmp, "umount %s/tmpfs", bkpinfo->tmpdir); 435 435 run_program_and_log_output(tmp, TRUE); 436 436 mr_free(tmp); 437 437 if (bkpinfo->backup_media_type == usb) { 438 438 log_msg(1, "Unmounting USB device."); 439 mr_asprintf( &tmp, "umount %s1", bkpinfo->media_device);439 mr_asprintf(tmp, "umount %s1", bkpinfo->media_device); 440 440 run_program_and_log_output(tmp, TRUE); 441 441 mr_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.