Changeset 2357 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-archive.c
- Timestamp:
- Aug 29, 2009, 3:22:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-archive.c
r2351 r2357 227 227 log_msg(5, "command='%s'", command); 228 228 res = system(command); 229 mr_asprintf(tmp, "%s", last_line_of_file(MONDO_LOGFILE));229 tmp = last_line_of_file(MONDO_LOGFILE); 230 230 log_msg(1, "res=%d; tmp='%s'", res, tmp); 231 231 if (bkpinfo->use_star && (res == 254 || res == 65024) … … 558 558 559 559 mr_asprintf(tmp, "%s/LAST-FILELIST-NUMBER", bkpinfo->tmpdir); 560 mr_asprintf(last_filelist_number, "%s", last_line_of_file(tmp));560 last_filelist_number = last_line_of_file(tmp); 561 561 mr_free(tmp); 562 562 … … 2034 2034 res = slice_up_file_etc(bigfile_fname, ntfsprog_fifo, biggie_file_number, noof_biggie_files, use_ntfsprog); 2035 2035 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2036 write_header_block_to_stream((off_t)0, calc_checksum_of_file(bigfile_fname), BLK_STOP_A_BIGGIE); 2036 tmp = calc_checksum_of_file(bigfile_fname); 2037 write_header_block_to_stream((off_t)0, tmp, BLK_STOP_A_BIGGIE); 2038 mr_free(tmp); 2037 2039 } 2038 2040 retval += res; … … 2049 2051 } 2050 2052 mr_free(bigfile_fname); 2051 #ifndef _XWIN2052 2053 if (!g_text_mode) { 2053 2054 newtDrawRootText(0, g_noof_rows - 2, tmp); 2054 2055 newtRefresh(); 2055 2056 } 2056 #endif2057 2057 mr_free(tmp); 2058 2058 } … … 2654 2654 mr_free(mds); 2655 2655 2656 cd_number = atoi(last_line_of_file(szcdno)); 2656 tmp = last_line_of_file(szcdno); 2657 cd_number = atoi(tmp); 2658 mr_free(tmp); 2659 2657 2660 mr_asprintf(tmp, "cat %s 2> /dev/null", szserfname); 2658 2661 mr_free(our_serial_str); … … 2982 2985 mr_asprintf(tmp, "%s - Bigfile #%ld, slice #%ld compressed OK ", biggie_filename, biggie_file_number + 1, slice_num); 2983 2986 } 2984 #ifndef _XWIN2985 2987 if (!g_text_mode) { 2986 2988 newtDrawRootText(0, g_noof_rows - 2, tmp); … … 2989 2991 log_msg(2, tmp); 2990 2992 } 2991 #else2992 log_msg(2, tmp);2993 #endif2994 2993 mr_free(tmp); 2995 2994 … … 3111 3110 log_msg(2, tmp); 3112 3111 center_string(tmp, 80); 3113 #ifndef _XWIN3114 3112 if (!g_text_mode) { 3115 3113 newtPushHelpLine(tmp); 3116 3114 } 3117 #endif3118 3115 res = write_iso_and_go_on(TRUE); 3119 #ifndef _XWIN3120 3116 if (!g_text_mode) { 3121 3117 newtPopHelpLine(); 3122 3118 } 3123 #endif3124 3119 log_msg(2, "Returning from writing final ISO (res=%d)", res); 3125 3120 paranoid_free(tmp);
Note:
See TracChangeset
for help on using the changeset viewer.