Changeset 2036


Ignore:
Timestamp:
Oct 6, 2008, 4:29:04 PM (11 years ago)
Author:
bruno
Message:

Fix a bug reported by Andree on an abuse for inexistant path in -E considered as a fatal error

File:
1 edited

Legend:

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

    r2022 r2036  
    12401240        while (token = mr_strtok(flag_val['E'], token_chars, &lastpos)) {
    12411241            switch (get_dsf_mount_list(token, &mounted_on_dsf, &not_mounted_on_dsf)) {
    1242             /* Fatal error; exit */
    12431242            case 1:
    1244                 fatal_error ("Error processing -E option");
     1243                log_msg(1, "WARNING ! a path doesn't exist in -E option");
     1244                break;
    12451245            /* Everything is OK; proceed to archive data */
    12461246            case 0:
     
    12591259            /* A device special file was not passed in. Process it as a path. */
    12601260            case -1:
    1261                     strcat(bkpinfo->exclude_paths, token);
    1262                     strcat(bkpinfo->exclude_paths, " ");
    1263             break;
     1261                strcat(bkpinfo->exclude_paths, token);
     1262                strcat(bkpinfo->exclude_paths, " ");
     1263                break;
    12641264            }
    12651265        }
Note: See TracChangeset for help on using the changeset viewer.