Changeset 2453


Ignore:
Timestamp:
Oct 7, 2009, 10:17:03 AM (9 years ago)
Author:
bruno
Message:
  • Fix a bug in handling of -E option with real devices (bad report in function mr_make_devlist_from_pathlist of the test between -E and -I)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-devices.c

    r2450 r2453  
    16961696        /* There were no partitions on the disk */
    16971697        log_msg(4, "No partitions on device special file %s", dsf);
    1698         log_msg(4, "I guess it's a partiion itself");
     1698        log_msg(4, "I guess it's a partition itself");
    16991699        strcpy(partitions[0], dsf);
    17001700        ndsf = truncate_to_drive_name(dsf);
     
    19541954            log_msg(1, "WARNING ! %s doesn't exist in -E option", token);
    19551955        } else {
     1956            log_msg(1, "ERROR ! %s doesn't exist in -I option", token);
    19561957            fatal_error("Error processing -I option");
    19571958        }
     
    19671968                strcat(bkpinfo->exclude_paths, " ");
    19681969                mr_strcat(bkpinfo->exclude_devs, " %s ", token);
    1969             } else {
    1970                 log_to_screen("Archiving only the following file systems on %s:\n", token);
    1971                 log_to_screen("  %s\n", mounted_on_dsf);
    1972                 strcpy(bkpinfo->include_paths, "/");
    1973                 if (strlen(not_mounted_on_dsf)) {
    1974                     log_msg (5, "Adding to bkpinfo->exclude_paths due to -I option: %s", not_mounted_on_dsf);
    1975                     log_to_screen("Not archiving the following file systems:\n");
    1976                     log_to_screen("  %s\n", not_mounted_on_dsf);
    1977                     strcat(bkpinfo->exclude_paths, not_mounted_on_dsf);
    1978                     strcat(bkpinfo->exclude_paths, "");
    1979                 }
     1970            }
     1971        } else {
     1972            log_to_screen("Archiving only the following file systems on %s:\n", token);
     1973            log_to_screen("  %s\n", mounted_on_dsf);
     1974            strcpy(bkpinfo->include_paths, "/");
     1975            if (strlen(not_mounted_on_dsf)) {
     1976                log_msg (5, "Adding to bkpinfo->exclude_paths due to -I option: %s", not_mounted_on_dsf);
     1977                log_to_screen("Not archiving the following file systems:\n");
     1978                log_to_screen("  %s\n", not_mounted_on_dsf);
     1979                strcat(bkpinfo->exclude_paths, not_mounted_on_dsf);
     1980                strcat(bkpinfo->exclude_paths, "");
    19801981            }
    19811982        }
Note: See TracChangeset for help on using the changeset viewer.