Changeset 1161 in MondoRescue for trunk/mondo/src/common/libmondo-filelist.c


Ignore:
Timestamp:
Feb 14, 2007, 1:13:49 PM (17 years ago)
Author:
Bruno Cornec
Message:

Update trunk with the latest feedback from stable (obtained with meld) - First pass

File:
1 edited

Legend:

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

    r1106 r1161  
    1919#include "mr_str.h"
    2020#include "mr_mem.h"
     21#include "mr_msg.h"
    2122
    2223#include <time.h>
     
    332333       then update_progress_form() won't show the "time taken / time remaining"
    333334       line. The bug only crops up AFTER the call to chop_filelist(). Weird. */
    334 #ifndef _XWIN
    335335    if (!g_text_mode) {
    336336        open_progress_form("", "", "", "", 100);
     
    339339        newtPopWindow();
    340340    }
    341 #endif
    342341    return (curr_set_no + 1);
    343342}
     
    386385    }
    387386    filelist->ch = '\0';
    388     mr_free((void *)filelist);
     387    mr_free(filelist);
    389388    depth--;
    390389    if (depth == 0) {
     
    490489{
    491490    char *command = NULL;
    492     char *tmp = NULL;
    493491    int retval = 0;
    494492
     
    542540    mr_asprintf(&masklist, "/tmp/%d.%d.mask", (int) (random() % 32768),
    543541             (int) (random() % 32768));
     542
    544543    mr_asprintf(&command, "cp -f %s %s", orig_msklist, masklist);
    545544    run_program_and_log_output(command, 1);
     
    752751        return (add_string_at_node(node->right, string_to_add));
    753752    }
     753
    754754    // walk down tree if appropriate
    755755    if (node->down != NULL && node->ch == char_to_add) {
     
    765765        return (1);
    766766    }
     767
    767768    // add here
    768769    newnode = (struct s_node *) mr_malloc(sizeof(struct s_node));
     
    12161217long g_skeleton_entries = 0;
    12171218
    1218 
    12191219/**
    12201220 * Wrapper around mondo_makefilelist().
     
    12341234    /*@ int **************************************************** */
    12351235    int res = 0;
    1236     /*@ buffers ************************************************ */
    12371236
    12381237    assert(bkpinfo != NULL);
     
    13431342        system(strtmp);
    13441343        mr_free(strtmp);
    1345         mr_free(tmp);
    1346 
    13471344        mr_asprintf(&tmp, "wc -l %s | awk '{print $1;}'", skeleton_filelist);
    13481345        tmp1 = call_program_and_get_last_line_of_output(tmp);
     
    15221519    char *tmp1 = NULL;
    15231520    char *tmp2 = NULL;
    1524     char *sz_datefile;
     1521    char *sz_datefile = NULL;
    15251522    char *sz_filelist = NULL;
    15261523    char *exclude_paths = NULL;
     
    17341731    size_t len = 0;             // Scrub's patch doesn't work without that
    17351732
    1736 //  mr_msg(1, "use_star = %s", (use_star)?"TRUE":"FALSE");
    17371733    mr_msg(5, "starting");
    17381734    mr_msg(5, "needles_list_fname = %s", needles_list_fname);
Note: See TracChangeset for help on using the changeset viewer.