Ignore:
Timestamp:
Jun 19, 2013, 8:34:46 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • First pass on svn merge -r 2935:3146 ../3.0
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/mondo/src/common/libmondo-files.c

    r2937 r3147  
    5151    /*@ pointers **************************************************** */
    5252    char *p = NULL;
     53    char *q;
    5354    FILE *fin;
    5455
     
    126127    char *command = NULL;
    127128    char *incoming = NULL;
     129    char *q;
    128130
    129131    /*@ long ******************************************************** */
     
    204206    char *tmp = NULL;
    205207    char *incoming = NULL;
     208    char *q;
    206209
    207210    /*@ int ********************************************************* */
     
    471474    char *output = NULL;
    472475    char *command = NULL;
     476    char *p = NULL;
    473477
    474478    /*@ pointers **************************************************** */
     
    540544    char *curr_cksum = NULL;
    541545    char *tmp = NULL;
     546    char *q;
    542547
    543548    /*@ long [long] ************************************************* */
     
    679684    /*@ buffers **************************************************** */
    680685    char *incoming = NULL;
     686    char *p = NULL;
    681687
    682688    /*@ end vars *************************************************** */
     
    743749    char *tmp = NULL;
    744750    char *command = NULL;
     751    char *comment;
    745752
    746753    /*@ long ******************************************************** */
     
    972979        return (1);
    973980    }
    974     fscanf(fin, "%s\n", contents);
     981    res = fscanf(fin, "%s\n", contents);
    975982    i = strlen(contents);
    976983    if (i > 0 && contents[i - 1] < 32) {
     
    978985    }
    979986    paranoid_fclose(fin);
     987    res = 0;
    980988    return (res);
    981989}
     
    10201028    if (res) {
    10211029        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");
    10221036    }
    10231037
Note: See TracChangeset for help on using the changeset viewer.