Changeset 783 in MondoRescue for trunk/mondo/mondo/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Aug 31, 2006, 5:09:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondorestore/mondo-rstr-compare.c
r689 r783 4 4 5 5 6 #include " ../common/my-stuff.h"6 #include "my-stuff.h" 7 7 #include "../common/mondostructures.h" 8 8 #include "../common/libmondo.h" … … 44 44 char *p = NULL; 45 45 int i = 0; 46 int n = 0;46 size_t n = 0; 47 47 int retval = 0; 48 48 … … 258 258 } 259 259 paranoid_free(tmp); 260 260 261 if (use_star) { 261 262 if (strcmp(compressor_exe, "bzip2")) { … … 264 265 } 265 266 } else { 266 asprintf(&tmp, compressor_exe);267 sprintf(compressor_exe, "-P %s -Z", tmp);267 tmp = compressor_exe; 268 asprintf(&compressor_exe, "-P %s -Z", tmp); 268 269 paranoid_free(tmp); 269 270 } … … 299 300 log_OS_error(command); 300 301 } 302 paranoid_free(command); 303 301 304 if (length_of_file(logfile) > 5) { 302 sprintf(command,305 asprintf(&command, 303 306 "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort -u | grep -vx \"dev/.*\" >> /tmp/changed.txt", 304 307 logfile); 305 308 system(command); 309 paranoid_free(command); 306 310 archiver_errors = count_lines_in_file(logfile); 307 311 } else { 308 312 archiver_errors = 0; 309 313 } 310 paranoid_free(command);311 314 312 315 if (archiver_errors) { … … 353 356 354 357 asprintf(&progress_str, _("Comparing with %s #%d "), 355 media_descriptor_string(bkpinfo->backup_media_type),358 bkpinfo->backup_media_string, 356 359 g_current_media_number); 357 360 … … 402 405 paranoid_free(progress_str); 403 406 asprintf(&progress_str, _("Comparing with %s #%d "), 404 media_descriptor_string(bkpinfo->backup_media_type),407 bkpinfo->backup_media_string, 405 408 g_current_media_number); 406 409 log_to_screen(progress_str);
Note:
See TracChangeset
for help on using the changeset viewer.