Changeset 3147 in MondoRescue for branches/3.1/mondo/src/common/libmondo-files.c
- Timestamp:
- Jun 19, 2013, 8:34:46 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/common/libmondo-files.c
r2937 r3147 51 51 /*@ pointers **************************************************** */ 52 52 char *p = NULL; 53 char *q; 53 54 FILE *fin; 54 55 … … 126 127 char *command = NULL; 127 128 char *incoming = NULL; 129 char *q; 128 130 129 131 /*@ long ******************************************************** */ … … 204 206 char *tmp = NULL; 205 207 char *incoming = NULL; 208 char *q; 206 209 207 210 /*@ int ********************************************************* */ … … 471 474 char *output = NULL; 472 475 char *command = NULL; 476 char *p = NULL; 473 477 474 478 /*@ pointers **************************************************** */ … … 540 544 char *curr_cksum = NULL; 541 545 char *tmp = NULL; 546 char *q; 542 547 543 548 /*@ long [long] ************************************************* */ … … 679 684 /*@ buffers **************************************************** */ 680 685 char *incoming = NULL; 686 char *p = NULL; 681 687 682 688 /*@ end vars *************************************************** */ … … 743 749 char *tmp = NULL; 744 750 char *command = NULL; 751 char *comment; 745 752 746 753 /*@ long ******************************************************** */ … … 972 979 return (1); 973 980 } 974 fscanf(fin, "%s\n", contents);981 res = fscanf(fin, "%s\n", contents); 975 982 i = strlen(contents); 976 983 if (i > 0 && contents[i - 1] < 32) { … … 978 985 } 979 986 paranoid_fclose(fin); 987 res = 0; 980 988 return (res); 981 989 } … … 1020 1028 if (res) { 1021 1029 fatal_error("Failed to copy Mondo's stuff to scratchdir"); 1030 } 1031 1032 mr_asprintf(command, "cp -f %s/LAST-FILELIST-NUMBER %s", bkpinfo->tmpdir, bkpinfo->scratchdir); 1033 1034 if (run_program_and_log_output(command, FALSE)) { 1035 fatal_error("Failed to copy LAST-FILELIST-NUMBER to scratchdir"); 1022 1036 } 1023 1037
Note:
See TracChangeset
for help on using the changeset viewer.