Changeset 3060 in MondoRescue for branches/3.0/mondo/src/common/libmondo-cli.c


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-cli.c

    r2946 r3060  
    107107//    }
    108108    /*  Before erasing dirs go into a safe place */
    109     chdir("/tmp");
     109    if (chdir("/tmp")) {
     110        // FIXME
     111    }
    110112    sprintf(tmp, "rm -Rf %s/tmp.mondo.*", bkpinfo->tmpdir);
    111113    paranoid_system(tmp);
     
    180182    int i = 0;
    181183    int retval = 0;
    182     int percent = 0;
    183     int lastpos = 0;
    184184
    185185    /*@ buffers ** */
     
    389389                flag_val['d']);
    390390        log_to_screen(tmp);
    391         percent = 0;
    392391    }
    393392
     
    660659        }
    661660        paranoid_free(tmp1);
    662         lastpos = 0;
    663661
    664662        mr_make_devlist_from_pathlist(flag_val['E'], 'E');
     
    813811        /* Before changing remove old ones if any */
    814812        if (bkpinfo->scratchdir) {
    815             chdir("/tmp");
     813            if (chdir("/tmp")) {
     814                // FIXME
     815            }
    816816            mr_asprintf(&tmp1, "rm -Rf %s", bkpinfo->scratchdir);
    817817            paranoid_system(tmp1);
Note: See TracChangeset for help on using the changeset viewer.