Ignore:
Timestamp:
Dec 6, 2013, 3:40:47 PM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix mondoarchive which now works in text mode. GUI mode still not working and crashing on first update for backup. Needs more

investigation in newt-specific.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-filelist.c

    r3194 r3205  
    13021302    struct dirent *dit;
    13031303    struct stat statbuf;
    1304     char *new;
     1304    char *new = NULL;
    13051305    char *tmp = NULL;
    13061306    char *dir = NULL;
    13071307    static int percentage = 0;
    13081308    char *skip_these = NULL;
    1309     char *new_with_pipe;
     1309    char *new_with_pipe = NULL;
    13101310    char *strtmp = NULL;
    13111311    char *token = NULL;
     
    13951395        mr_free(find_skeleton_marker);
    13961396    }
     1397    mr_free(dir);
    13971398
    13981399    depth++;
    13991400
    1400 //  log_msg(0, "Cataloguing %s", dir);
    14011401    mr_asprintf(skip_these, "|%s|", sth);
    14021402   
     
    14551455    mr_free(new_with_pipe);
    14561456    mr_free(skip_these);
    1457     mr_free(dir);
    14581457
    14591458    if (dip) {
     
    15831582        if ((include_paths != NULL) && (strlen(include_paths) == 0)) {
    15841583            log_msg(1, "Including only '/' in %s", sz_filelist);
    1585             open_and_list_dir("/", exclude_paths, fout,
    1586                               time_of_last_full_backup);
     1584            open_and_list_dir("/", exclude_paths, fout, time_of_last_full_backup);
    15871585        } else {
    15881586            p = include_paths;
     
    15901588                q = next_entry(p);
    15911589                log_msg(1, "Including %s in filelist %s", q, sz_filelist);
    1592                 open_and_list_dir(q, exclude_paths, fout,
    1593                                   time_of_last_full_backup);
     1590                open_and_list_dir(q, exclude_paths, fout, time_of_last_full_backup);
    15941591                p += strlen(q);
    15951592                paranoid_free(q);
     
    16521649
    16531650    if (bkpinfo->make_filelist) {
    1654         res =
    1655             mondo_makefilelist(MONDO_LOGFILE, bkpinfo->tmpdir,
    1656                                bkpinfo->scratchdir, bkpinfo->include_paths,
    1657                                bkpinfo->exclude_paths,
    1658                                bkpinfo->differential, NULL);
     1651        res = mondo_makefilelist(MONDO_LOGFILE, bkpinfo->tmpdir, bkpinfo->scratchdir, bkpinfo->include_paths, bkpinfo->exclude_paths, bkpinfo->differential, NULL);
    16591652    } else {
    1660         res =
    1661             mondo_makefilelist(MONDO_LOGFILE, bkpinfo->tmpdir,
    1662                                bkpinfo->scratchdir, NULL,
    1663                                bkpinfo->exclude_paths,
    1664                                bkpinfo->differential,
    1665                                bkpinfo->include_paths);
     1653        res = mondo_makefilelist(MONDO_LOGFILE, bkpinfo->tmpdir, bkpinfo->scratchdir, NULL, bkpinfo->exclude_paths, bkpinfo->differential, bkpinfo->include_paths);
    16661654    }
    16671655
Note: See TracChangeset for help on using the changeset viewer.