Changeset 2323 in MondoRescue for branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c
- Timestamp:
- Aug 18, 2009, 3:05:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondoarchive/mondoarchive.c
r2322 r2323 209 209 210 210 /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */ 211 mr_asprintf( &tmp1,"%s:/sbin:/usr/sbin:/usr/local/sbin",getenv("PATH"));211 mr_asprintf(tmp1,"%s:/sbin:/usr/sbin:/usr/local/sbin",getenv("PATH")); 212 212 setenv("PATH", tmp1, 1); 213 213 mr_free(tmp1); 214 214 215 215 /* Add the ARCH environment variable for ia64 purposes */ 216 mr_asprintf( &tmp1,"%s",get_architecture());216 mr_asprintf(tmp1,"%s",get_architecture()); 217 217 setenv("ARCH", tmp1, 1); 218 218 mr_free(tmp1); … … 352 352 retval += res; 353 353 if (res) { 354 mr_asprintf( &say_at_end, "Data archived. Please check the logs, just as a precaution. ");355 } else { 356 mr_asprintf( &say_at_end, "Data archived OK. ");354 mr_asprintf(say_at_end, "Data archived. Please check the logs, just as a precaution. "); 355 } else { 356 mr_asprintf(say_at_end, "Data archived OK. "); 357 357 } 358 358 } … … 362 362 res = verify_data(); 363 363 if (res < 0) { 364 mr_asprintf( &tmp, "%d difference%c found.", -res,364 mr_asprintf(tmp, "%d difference%c found.", -res, 365 365 (-res != 1) ? 's' : ' '); 366 mr_asprintf( &say_at_end, "%s", tmp);366 mr_asprintf(say_at_end, "%s", tmp); 367 367 log_to_screen(tmp); 368 368 mr_free(tmp); … … 402 402 mr_free(say_at_end); 403 403 } 404 mr_asprintf( &tmp, "umount %s/tmpfs", bkpinfo->tmpdir);404 mr_asprintf(tmp, "umount %s/tmpfs", bkpinfo->tmpdir); 405 405 run_program_and_log_output(tmp, TRUE); 406 406 mr_free(tmp); 407 407 if (bkpinfo->backup_media_type == usb) { 408 408 log_msg(1, "Unmounting USB device."); 409 mr_asprintf( &tmp, "umount %s1", bkpinfo->media_device);409 mr_asprintf(tmp, "umount %s1", bkpinfo->media_device); 410 410 run_program_and_log_output(tmp, TRUE); 411 411 mr_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.