Ignore:
Timestamp:
Aug 18, 2009, 2:36:47 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3329@localhost: bruno | 2009-08-05 00:33:17 +0200
bkpinfo->exclude_paths is now dynamically allocated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-archive.c

    r2317 r2318  
    1313#include "my-stuff.h"
    1414#include "mr_mem.h"
     15#include "mr_str.h"
    1516#include "mondostructures.h"
    1617#include "libmondo-string-EXT.h"
     
    542543
    543544    assert(bkpinfo != NULL);
    544     mr_asprintf(&tmp, "echo '%s' | tr -s ' ' '\n' | grep -E '^/dev/.*$' | tr -s '\n' ' ' | awk '{print $0\"\\n\";}'",
    545             bkpinfo->exclude_paths);
     545    mr_asprintf(&tmp, "echo '%s' | tr -s ' ' '\n' | grep -E '^/dev/.*$' | tr -s '\n' ' ' | awk '{print $0\"\\n\";}'", bkpinfo->exclude_paths);
    546546    mr_asprintf(&devs_to_exclude, "%s", call_program_and_get_last_line_of_output(tmp));
    547547    mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.