Ignore:
Timestamp:
Feb 2, 2011, 1:18:23 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Document in man page and HOWTO the previous syntax modifications for -E/-I options and '|' separator
  • Fix #444. mondoarchive now supports inclusion/exclusion of dirs with spaces in their name. this required a syntax change for the -E/-I options where the list of dirs needs to be separated by '|' now instead of ' '.
  • Fix issus with mindi when launched from a dir containing spaces
  • Fix a but when no -E option is give on CLI (null) string generated
  • Fix #459 by correcting an old README containing info on the edit-mountlist binary which doesn't exist.

svn merge -r 2709:2714 svn+ssh://bruno@svn.mondorescue.org/mondo/svn/mondorescue/branches/2.2.9 .

File:
1 edited

Legend:

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

    r2704 r2715  
    268268        /* Cut the flag_val['I'] in parts containing all paths to test them */
    269269        while (p != NULL) {
    270             q = strchr(p, ' ');
     270            q = strchr(p, '|');
    271271            if (q != NULL) {
    272272                *q = '\0';
     
    590590        /* Cut the flag_val['E'] in parts containing all paths to test them */
    591591        while (p != NULL) {
    592             q = strchr(p, ' ');
     592            q = strchr(p, '|');
    593593            if (q != NULL) {
    594594                *q = '\0';
     
    625625    if ((flag_set['N']) && (! bkpinfo->restore_data))       // exclude Network mounts & devices
    626626    {
    627         mr_asprintf(psz, "%s", list_of_NETFS_mounts_only());
    628         mr_strcat(bkpinfo->exclude_paths, " %s ", psz);
    629         mr_free(psz);
     627        psz = list_of_NETFS_mounts_only();
     628        log_msg(5, "-N means we'll exclude %s", psz);
     629        if (bkpinfo->exclude_paths) {
     630            mr_strcat(bkpinfo->exclude_paths, "|%s", psz);
     631            mr_free(psz);
     632        } else {
     633            bkpinfo->exclude_paths = psz;
     634        }
    630635
    631636        if (bkpinfo->exclude_paths != NULL) {
Note: See TracChangeset for help on using the changeset viewer.