Changeset 1747 in MondoRescue for branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare.c
- Timestamp:
- Oct 30, 2007, 1:18:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/mondorestore/mondo-rstr-compare.c
r1664 r1747 207 207 log_msg(1, tmp_ptr); 208 208 if (retval) { 209 if (!(fout = fopen(M INDI_CACHE"/changed.txt", "a"))) {209 if (!(fout = fopen(MONDO_CACHE"/changed.txt", "a"))) { 210 210 fatal_error("Cannot openout changed.txt"); 211 211 } … … 384 384 if (length_of_file(logfile) > 5) { 385 385 sprintf(command, 386 "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort -u | grep -vE \"^dev/.*\" >> "M INDI_CACHE"/changed.txt",386 "sed s/': \\\"'/\\|/ %s | sed s/'\\\": '/\\|/ | cut -d'|' -f2 | sort -u | grep -vE \"^dev/.*\" >> "MONDO_CACHE"/changed.txt", 387 387 logfile); 388 388 system(command); … … 545 545 getcwd(new, MAX_STR_LEN - 1); 546 546 insist_on_this_cd_number(g_current_media_number); 547 unlink(M INDI_CACHE"/changed.txt");547 unlink(MONDO_CACHE"/changed.txt"); 548 548 549 549 resA = compare_all_tarballs(); 550 550 resB = compare_all_biggiefiles(); 551 551 chdir(cwd); 552 noof_changed_files = count_lines_in_file(M INDI_CACHE"/changed.txt");552 noof_changed_files = count_lines_in_file(MONDO_CACHE"/changed.txt"); 553 553 if (noof_changed_files) { 554 554 sprintf(tmp, "%ld files do not match the backup ", … … 556 556 // mvaddstr_and_log_it( g_currentY++, 0, tmp ); 557 557 log_to_screen(tmp); 558 sprintf(command, "cat "M INDI_CACHE"/changed.txt >> %s", MONDO_LOGFILE);558 sprintf(command, "cat "MONDO_CACHE"/changed.txt >> %s", MONDO_LOGFILE); 559 559 paranoid_system(command); 560 560 } else { … … 662 662 } 663 663 664 if (count_lines_in_file(M INDI_CACHE"/changed.txt") > 0) {664 if (count_lines_in_file(MONDO_CACHE"/changed.txt") > 0) { 665 665 mvaddstr_and_log_it(g_currentY++, 0, 666 666 "Differences found while files were being compared."); 667 streamline_changes_file(M INDI_CACHE"/changed.files", MINDI_CACHE"/changed.txt");668 if (count_lines_in_file(M INDI_CACHE"/changed.files") <= 0) {667 streamline_changes_file(MONDO_CACHE"/changed.files", MONDO_CACHE"/changed.txt"); 668 if (count_lines_in_file(MONDO_CACHE"/changed.files") <= 0) { 669 669 mvaddstr_and_log_it(g_currentY++, 0, 670 670 "...but they were logfiles and temporary files. Your archives are fine."); … … 672 672 ("The differences were logfiles and temporary files. Your archives are fine."); 673 673 } else { 674 q = count_lines_in_file(M INDI_CACHE"/changed.files");674 q = count_lines_in_file(MONDO_CACHE"/changed.files"); 675 675 sprintf(tmp, "%ld significant difference%s found.", q, 676 676 (q != 1) ? "s" : ""); … … 687 687 chdir(bkpinfo->restore_path); 688 688 getcwd(new, MAX_STR_LEN - 1); 689 popup_changelist_from_file(M INDI_CACHE"/changed.files");689 popup_changelist_from_file(MONDO_CACHE"/changed.files"); 690 690 chdir(cwd); 691 691 log_msg(2, "Returning from popup_changelist_from_file()"); … … 744 744 res = verify_tape_backups(); 745 745 chdir(dir); 746 if (length_of_file(M INDI_CACHE"/changed.txt") > 2747 && length_of_file(M INDI_CACHE"/changed.files") > 2) {746 if (length_of_file(MONDO_CACHE"/changed.txt") > 2 747 && length_of_file(MONDO_CACHE"/changed.files") > 2) { 748 748 log_msg(0, 749 "Type 'less "M INDI_CACHE"/changed.files' to see which files don't match the archives");749 "Type 'less "MONDO_CACHE"/changed.files' to see which files don't match the archives"); 750 750 log_msg(2, "Calling popup_changelist_from_file()"); 751 popup_changelist_from_file(M INDI_CACHE"/changed.files");751 popup_changelist_from_file(MONDO_CACHE"/changed.files"); 752 752 log_msg(2, "Returned from popup_changelist_from_file()"); 753 753 }
Note:
See TracChangeset
for help on using the changeset viewer.