Ignore:
Timestamp:
Jan 10, 2006, 9:51:24 AM (14 years ago)
Author:
bcornec
Message:

svn merge -r288:291 $SVN_M/branches/2.06

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondoarchive/mondo-cli.c

    r219 r292  
    221221    long itbs;
    222222
     223    struct stat buf;
     224
    223225    assert(bkpinfo != NULL);
    224226    assert(flag_val != NULL);
     
    297299        if (bkpinfo->include_paths[0]) {
    298300            strcat(bkpinfo->include_paths, " ");
     301        }
     302        if (stat(flag_val['I'], &buf) != 0) {
     303            log_msg("ERROR ! %s doesn't exist", flag_val['I']);
     304            fatal_error("ERROR ! You specified a directory to include which doesn't exist");
    299305        }
    300306        strncpy(bkpinfo->include_paths + strlen(bkpinfo->include_paths),
     
    509515        if (bkpinfo->exclude_paths[0]) {
    510516            strcat(bkpinfo->exclude_paths, " ");
     517        }
     518        if (stat(flag_val['E'], &buf) != 0) {
     519            log_msg(1, "WARNING ! %s doesn't exist", flag_val['E']);
    511520        }
    512521        strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths),
Note: See TracChangeset for help on using the changeset viewer.