Changeset 3194 in MondoRescue for branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Sep 29, 2013, 7:27:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
r3193 r3194 639 639 /** add mallocs **/ 640 640 char value[MAX_STR_LEN]; 641 char *tmp = NULL;642 641 char *tmp1 = NULL; 643 642 char *envtmp1 = NULL; … … 936 935 log_it("command = %s", command); 937 936 log_it("res of it = %s", call_program_and_get_last_line_of_output(command)); 938 mr_strcpy(iso_mnt, call_program_and_get_last_line_of_output(command));937 sprintf(iso_mnt, "%s", call_program_and_get_last_line_of_output(command)); 939 938 mr_free(command); 940 939 } else { 941 mr_asprintf(iso_mnt, "/tmp/isodir");940 sprintf(iso_mnt, "/tmp/isodir"); 942 941 mr_asprintf(tmp1, "mkdir -p %s", iso_mnt); 943 942 run_program_and_log_output(tmp1, 5); … … 979 978 } 980 979 g_backup_media_type = bkpinfo->backup_media_type; 981 paranoid_free(value);982 paranoid_free(iso_mnt);983 paranoid_free(iso_path);984 980 return (0); 985 981 … … 2053 2049 /* Doing that allow us to remain compatible with pre-2.2.5 versions */ 2054 2050 log_msg(2, "pre-2.2.4 compatible mode on"); 2055 mr_ sprintf(command, "dd if=%s bs=%ld count=%ld 2> /dev/null | tar -zx %s %s %s %s %s", dev, bkpinfo->internal_tape_block_size, 1024L * 1024 * 32 / bkpinfo->internal_tape_block_size, MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, IWANTMYLVM_STUB);2051 mr_asprintf(command, "dd if=%s bs=%ld count=%ld 2> /dev/null | tar -zx %s %s %s %s %s", dev, bkpinfo->internal_tape_block_size, 1024L * 1024 * 32 / bkpinfo->internal_tape_block_size, MOUNTLIST_FNAME_STUB, MONDO_CFG_FILE_STUB, BIGGIELIST_TXT_STUB, FILELIST_FULL_STUB, IWANTMYLVM_STUB); 2056 2052 log_msg(2, "command = '%s'", command); 2057 2053 res = run_program_and_log_output(command, -1); … … 2103 2099 unlink(FILELIST_FULL_STUB); 2104 2100 unlink(BIGGIELIST_TXT_STUB); 2105 mr 2101 mr_asprintf(command, "mkdir -p %s", mountpt); 2106 2102 run_program_and_log_output(command, FALSE); 2107 2103 mr_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.