Changeset 3866 in MondoRescue for branches/3.3/mondo/src/common/libmondo-fork.c
- Timestamp:
- Mar 7, 2024, 1:55:18 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/common/libmondo-fork.c
r3863 r3866 608 608 int res = -1; 609 609 char *command = NULL; 610 char *tmp = NULL; 610 611 611 612 if (!does_file_exist(input_device)) { 612 613 fatal_error("input device does not exist"); 613 614 } 614 if ( !find_home_of_exe("ntfsclone")) {615 if ((tmp = find_home_of_exe("ntfsclone")) == NULL) { 615 616 fatal_error("ntfsclone not found"); 616 617 } 617 mr_asprintf(command, "ntfsclone --rescue --force --save-image --overwrite %s %s", output_fname, input_device); 618 mr_asprintf(command, "%s --rescue --force --save-image --overwrite %s %s", tmp, output_fname, input_device); 619 mr_free(tmp); 618 620 res = run_program_and_log_output(command, 5); 619 621 mr_free(command); … … 717 719 int res = -1; 718 720 char *command = NULL; 719 720 if ( !find_home_of_exe("ntfsclone")) { 721 char *tmp = NULL; 722 723 if ((tmp = find_home_of_exe("ntfsclone")) == NULL) { 721 724 fatal_error("ntfsclone not found"); 722 725 } 723 mr_asprintf(command, "ntfsclone --rescue --force --restore-image --overwrite %s %s", output_device, input_fifo); 726 mr_asprintf(command, "%s --rescue --force --restore-image --overwrite %s %s", tmp, output_device, input_fifo); 727 mr_free(tmp); 724 728 res = run_program_and_log_output(command, 5); 725 729 mr_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.