Ignore:
Timestamp:
Nov 10, 2012, 5:05:37 AM (11 years ago)
Author:
Bruno Cornec
Message:

r5035@localhost: bruno | 2012-11-09 03:17:01 +0100

  • Fix a compilation error and most compilation warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-verify.c

    r3056 r3060  
    337337                            biggiestruct.filename,
    338338                            bkpinfo->tmpdir);
    339                 system(tmp);
     339                paranoid_system(tmp);
    340340                paranoid_free(tmp);
    341341
     
    445445    char *outlog;
    446446    char *tmp;
    447     //  char *p;
     447    char *p;
    448448
    449449    /*@ pointers ******************************************************* */
     
    512512        pin = popen(command, "r");
    513513        if (pin) {
    514             for (fgets(tmp, MAX_STR_LEN, pin); !feof(pin);
    515                  fgets(tmp, MAX_STR_LEN, pin)) {
     514            for (p = fgets(tmp, MAX_STR_LEN, pin); !feof(pin) && (p != NULL);
     515                 p = fgets(tmp, MAX_STR_LEN, pin)) {
    516516                if (bkpinfo->use_star) {
    517517                    if (!strstr(tmp, "diffopts=")) {
     
    724724            sprintf(tmp, "echo \"%s\" >> %s/biggies.changed",
    725725                    biggie_fname, bkpinfo->tmpdir);
    726             system(tmp);
     726            paranoid_system(tmp);
    727727        }
    728728    }
Note: See TracChangeset for help on using the changeset viewer.