Changeset 3342


Ignore:
Timestamp:
Feb 12, 2015, 8:06:16 PM (4 years ago)
Author:
bruno
Message:
  • Fix a bug with -I usage where mondoarchive was core dumping (Philippe Lefevre lefevre.ph_at_free.fr)
File:
1 edited

Legend:

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

    r3334 r3342  
    230230
    231231    if (flag_set['I']) {
    232         if (bkpinfo->include_paths && bkpinfo->include_paths[0] == '-') {
     232        if (flag_val['I'][0] == '-') {
    233233            retval++;
    234234            log_to_screen("Please supply a sensible value with '-I'\n");
    235235        }
    236         if (bkpinfo->include_paths && !strcmp(bkpinfo->include_paths, "/")) {
     236        if (!strcmp(flag_val['I'],"/")) {
    237237            log_msg(2, "'/' is pleonastic.");
    238             mr_free(bkpinfo->include_paths);
    239238        }
    240239        if (bkpinfo->include_paths && bkpinfo->include_paths[0]) {
     
    560559
    561560    if (flag_set['E']) {
    562         if (bkpinfo->exclude_paths && (bkpinfo->exclude_paths[0] == '-')) {
     561        if ((flag_val['E'][0] == '-')) {
    563562            retval++;
    564563            log_to_screen("Please supply a sensible value with '-E'\n");
Note: See TracChangeset for help on using the changeset viewer.