Changeset 2713 in MondoRescue for branches/2.2.9/mondo/src/common/libmondo-cli.c
- Timestamp:
- Feb 2, 2011, 12:35:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-cli.c
r2698 r2713 277 277 } 278 278 if (bkpinfo->include_paths[0]) { 279 strcat(bkpinfo->include_paths, " 279 strcat(bkpinfo->include_paths, "|"); 280 280 } 281 281 … … 286 286 /* Cut the flag_val['I'] in parts containing all paths to test them */ 287 287 while (p != NULL) { 288 q = strchr(p, ' 288 q = strchr(p, '|'); 289 289 if (q != NULL) { 290 290 *q = '\0'; … … 612 612 log_to_screen("Please supply a sensible value with '-E'\n"); 613 613 } 614 mr_strcat(bkpinfo->exclude_paths, " ");615 614 mr_asprintf(&tmp1, "%s", flag_val['E']); 616 615 … … 620 619 /* Cut the flag_val['E'] in parts containing all paths to test them */ 621 620 while (p != NULL) { 622 q = strchr(p, ' 621 q = strchr(p, '|'); 623 622 if (q != NULL) { 624 623 *q = '\0'; … … 655 654 if ((flag_set['N']) && (! bkpinfo->restore_data)) // exclude Network mounts & devices 656 655 { 657 mr_asprintf(&psz, "%s", list_of_NETFS_mounts_only()); 658 mr_strcat(bkpinfo->exclude_paths, "%s ", psz); 659 mr_free(psz); 656 psz = list_of_NETFS_mounts_only(); 657 log_msg(5, "-N means we'll exclude %s", psz); 658 if (bkpinfo->exclude_paths) { 659 mr_strcat(bkpinfo->exclude_paths, "|%s", psz); 660 mr_free(psz); 661 } else { 662 bkpinfo->exclude_paths = psz; 663 } 660 664 661 665 if (bkpinfo->exclude_paths != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.