Ignore:
Timestamp:
Jul 20, 2007, 1:28:27 AM (17 years ago)
Author:
Bruno Cornec
Message:

exclude_path should be 4*MAX_STR_LEN everywhere. Fixed now.
Increasing that value will allow to having larger exclude paths.
Should solve bug #137 (and maybe #3 as well)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondoarchive/mondo-cli.c

    r1236 r1540  
    725725        strncpy(psz, list_of_NFS_mounts_only(), MAX_STR_LEN);
    726726        if (bkpinfo->exclude_paths[0]) {
    727             strncat(bkpinfo->exclude_paths, " ", MAX_STR_LEN);
    728         }
    729         strncat(bkpinfo->exclude_paths, psz, MAX_STR_LEN);
     727            strncat(bkpinfo->exclude_paths, " ", 4*MAX_STR_LEN);
     728        }
     729        strncat(bkpinfo->exclude_paths, psz, 4*MAX_STR_LEN);
    730730        log_msg(3, "-N means we're now excluding %s",
    731731                bkpinfo->exclude_paths);
    732732    }
    733     if (strlen(bkpinfo->exclude_paths) >= MAX_STR_LEN) {
     733    if (strlen(bkpinfo->exclude_paths) >= 4*MAX_STR_LEN) {
    734734        fatal_error
    735             ("Your '-E' parameter is too long. Please use '-J'. (See manual.)");
     735            ("Your '-E' parameter is too long. Increase MAX_STR_LEN");
    736736    }
    737737    if (flag_set['b']) {
Note: See TracChangeset for help on using the changeset viewer.