Changeset 2297 in MondoRescue
- Timestamp:
- Jul 23, 2009, 5:43:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/mondorestore/mondo-prep.c
r2290 r2297 790 790 fclose(fin); 791 791 unlink("/tmp/plexes"); 792 /* retval+=res; */793 792 } 794 793 #else … … 856 855 857 856 res = run_program_and_log_output(program, FALSE); 857 if (res) { 858 mr_strcat(tmp, "...failed"); 859 } else { 860 mr_strcat(tmp, "...OK"); 861 } 862 log_to_screen(tmp); 863 paranoid_free(tmp); 864 858 865 mr_asprintf(&tmp, ""); 859 866 if (res && strstr(program, "kludge")) { … … 875 882 fprintf(g_fprep, "%s\n", program); 876 883 } 884 if (retval) { 885 mr_strcat(tmp, "...failed"); 886 } else { 887 mr_strcat(tmp, "...OK"); 888 } 889 890 log_to_screen(tmp); 891 paranoid_free(tmp); 892 877 893 } 878 894 retval += res; 879 if (retval) {880 mr_strcat(tmp, "...failed");881 } else {882 mr_strcat(tmp, "...OK");883 }884 885 log_to_screen(tmp);886 paranoid_free(tmp);887 888 895 paranoid_free(program); 889 896 system("sync");
Note:
See TracChangeset
for help on using the changeset viewer.